mfenniak / rethinkdb-net

A C# / .NET client driver for RethinkDB.
Other
247 stars 37 forks source link

Update Item in nested array #251

Open consigliory opened 8 years ago

consigliory commented 8 years ago

I am new to rethink and rethink.net driver and cannot find way to update item in nested array.

Test -- []Question --------[]Answer

I need to update 3rd level of nested element(answer) and only way I can do it for now is to read value update it and then call rethinkdb.net to replace document. Which is obviously not the best way. I try some few ways and all of them completely valid c# (linq) but throw exp on conversion to ReQL.

mfenniak commented 8 years ago

Hm... I don't think there's any way to do this with the driver today. Is this possible with other RethinkDB drivers, without dropping down to using r.js() to execute JavaScript? I can't quite picture how these queries would work given the internals of ReQL.