docs icon indicating copy to clipboard operation
docs copied to clipboard

No documentation on how to update values in an array of subdocuments

Open codeliger opened this issue 7 years ago • 2 comments

No documentation on how to update values in an array of subdocuments

codeliger avatar Oct 28 '18 23:10 codeliger

r.table(...).get(...).update({
contacts: r.row('Contacts').changeAt(0,
  r.row('Contacts').nth(0).merge({feedback: "NICE"}))
 })

something like this ?

luke-robertson avatar Jan 02 '19 22:01 luke-robertson

You have to construct a new array -- you can't update individual values.

srh avatar Jan 23 '19 03:01 srh