I have a nest operation that joins an array of ids with some documents.
SELECT left.*,right FROM bucket AS left
LEFT NEST bucket AS right
ON META(right).id IN left.array
Result
[
{
array : ["rightId1","rightId2"],
right : [ { < rightFields1 > }, { < rightFields2 > } ]
}
]
I need the returned documents (< rightFields >) have the id on one of its fields, how can I do this?