I'm having a series of documents in cosmos DB where the structure is as follows:
{
"id" : "s2912vdla"
"allowed-usrs": [
{
"id": "myId"
}
],
....
}
I need to be able to get all the documents, which has the id myId in allowed-usrs.id.
Unfortunately, its unclear for me how the SQL Cosmos API would achieve this - I've read in the docs that I should use the IN clause, but I can't seem to get it to work:
SELECT * FROM c IN t.allowed-usrs WHERE c.id = "myId"
myId