Is there a way that we can filter by embedded document?
e.g.,
"_items": [
{
"filename": "abc",
"project_id": {
"user_id": "4LoyrLVNHKGGyrJzhPeClp",
"_id": "565db761d737bd1d51b25274",
"description": "test"
}
},
{
"filename": "cdf",
"project_id": {
"user_id": "98765LVNHKGGyrJzhPeClp",
"_id": "123db761d737bd1d51b25274",
"description": "test"
}
}
],
I want to get the first document:
{
"filename": "abc",
"project_id": {
"user_id": "4LoyrLVNHKGGyrJzhPeClp",
"_id": "565db761d737bd1d51b25274",
"description": "test"
}
},
by filtering {"project_id.user_id":"4LoyrLVNHKGGyrJzhPeClp"}