Hi !
I need to do this query with Parse, is it possible ?
db.User.find({
"friends.bestFriends" : { $elemMatch : { "objectId" : "xkdUOWAoUI"}}
})
Is the $elemMatch implemented ? I see in the sources that it is used by another type of query, but i’m not sure how to use it for my usage.
And the data looks like :
{
friends: {
bestFriends : [
{ "objectId" : "xkdUOWAoUI" , name : "Bob" },
{ "objectId" : "ASfoiwePO" , name : "John" }
}
}
}
Have a great day !