rethinkdb/docs

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

codeliger opened this issue · 2 comments

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

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

something like this ?

srh commented

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