Answer the question
In order to leave comments, you need to log in
MongoDB how to find any value in case nothing is set in parameters?
Good day!
Tell me how to find any value if the parameters are empty? In this case, the structure of the request must be preserved.
db.ad.find({"electronics.categoryId" : 1}).count(); //все ок
db.ad.find({"electronics.categoryId" : ????????? }).count(); //показать все, если в параметрах пусто
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