I have a Users Collection that looks like the following
{
{
_id: ObjectId(...),
services: {facebook: {id: 1}}
},
{
_id: ObjectId(...),
services: {facebook: {id: 2}}
},
...
}
Additionally, i have the following JavaScript array:
[
{name: "Alice", id: 1},
{name: "Bob", id: 3},
...
]
I want to find all users whose id is present in the array, but I could not find a way to "reach into" the JavaScript array.