i try to find way in C Driver to somthing that is similar to : https://docs.mongodb.com/manual/reference/operator/query/elemMatch/#op._S_elemMatch
as answerd in this thread :
Query for a field in an object in array with Mongo?
i have this json and i want check if the value of sessions.id == 1234556:
{
"_id": ObjectId("5768e43"),
"APPID": {
"Number": 0,
},
sessions: [
{
id:1234556,
"setOID": {
"Number": 0
},
"custID": {
"Number": 0
},
},
{
id:133333,
"setOID": {
"Number": 2
},
"custID": {
"Number": 2
},
},
]
}
how can it be done in the new C Driver ?