Answer the question
In order to leave comments, you need to log in
Why doesn't $in operator for subarray work in mongodb?
Hey!
Maybe the question is stupid, but I can’t understand why with the simplest document:
{
"_id": "...",
"data": {
"id": "1",
"field": "..."
}
}
$mongo->collection->find( ['data.id' => ['$in' => [1, 2,3] ] ]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question