After referencing the example provided here, I have included an additional level to notes
, where it is mapped to an object containing arrays within its elements.
{
id: 10001,
name: "Bob Smith",
notes: {
alpha:['note1','note2','note3'],
beta:['note1','note2','note3']
}
}
I am facing difficulty in appending elements to both alpha
and beta
. Various attempts, such as the following, have not been successful:
update({
notes:{
alpha: r.row("alpha").append('note4')
}
})
I seem to be stuck and unable to find a solution on my own. Any assistance or guidance would be greatly appreciated~
The error message I encountered was No attribute 'alpha' in object: