Is there some value/argument i can pass to a mongo query so it IGNORES that query and returns all documents reagrdless of that field?

后端 未结 0 1823
南笙
南笙 2021-02-07 07:20

I\'m trying to query conditionally based on the value provided by a user. But if the user provides no value i want to return all documents

example query

//         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题