Mongodb aggregate match if else condition

前端 未结 0 1016
北荒
北荒 2021-01-21 10:49

What I\'m trying to achieve is if there\'s _id parse in from the query controller, use aggregate match by that _id. If there\'s no _id, query every document in that collection.

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