Suppose I have 3 objects in a DocumentDB like this.
This is a class entry.
And now I want to get all Id where the student exists with the name sunny.
{ "id": "111", "class": 1, "students": [ { "name": "sunny" }, { "name": "pinki" }, { "name": "bobby" }, { "name": "lucky" } ] } { "id": "222", "class": 2, "students": [ { "name": "pinki" }, { "name": "sunny" }, { "name": "bobby" } ] } { "id": "333", "class": 3, "students": [ { "name": "pinki" }, { "name": "lucky" }, { "name": "bobby" } ] }
What will be the request to get the result?
source share