Answer the question
In order to leave comments, you need to log in
How to find documents in a collection in MongoDB by a field containing an array of id of other documents?
{
"_id" : ObjectId("5c56f44a72e502aa8d9ecbef"),
"parent_id" : [ObjectId("5c56f44a72e502d9ecbefaa8"), ObjectId("5c56f44a72d9ecbefaa8e502") ],
"url" : "category-ochki-solncezashhitnye",
"name" : "Очки",
"subname" : "Для всей семьи",
"keywords" : "солнцезащитные очки",
"description" : "Lorem Ipsum ....",
"image" : "140d8ed.png",
"timestamp" : 1388939670,
"position" : 0,
"isDisabled" : false
}
Answer the question
In order to leave comments, you need to log in
It is very important to be able to google. The first issue of Google.
https://docs.mongodb.com/manual/tutorial/query-arrays/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question