I have an array as a field in a document in fauna that I need to append a number to. See document below. Right now, my query (also below) just erases the old value instead of appending to it.
"data": {
"name": "nine",
"stars": [
1
]
}
await client.query(
q.Update(
q.Ref(q.Collection('test'), `${doc_id`),
{ data: { {stars:[1] } },
)
)