I have a collection like the following. I wan to get the users data only where fb_user_id is 2001.
How can I do this in PHP?
{
"_id": ObjectId("5024db89b7ac1c900e000000"),
"title": "This is a title",
"users": [
{
"name": "John",
"email": "[email protected]",
"fb_user_id": "1000"
},
{
"name": "Jack",
"email": "[email protected]",
"fb_user_id": "2001"
},
]
}