RethinkDB - Updating nested array
问题 I have a survey table that looks like so: { id: Id, date: Date, clients: [{ client_id: Id, contacts: [{ contact_id: Id, score: Number, feedback: String, email: String }] }] } I need to updated the score and feedback fields under a specific contact. Currently, I am running the update like this: function saveScore(obj){ var dfd = q.defer(); var survey = surveys.get(obj.survey_id); survey .pluck({ clients: 'contacts' }) .run() .then(results => { results.clients.forEach((item, outerIndex) => {