How to Put condition in Mongodb if condition is exists?

后端 未结 0 752
死守一世寂寞
死守一世寂寞 2021-01-14 20:05

I need a help, How can I conditionally put object query in $and array? Like if user doesnt supply man value then { deliveryman: man } filter will be removed.

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