MongoDB $lookup aggregation recursively and stop the lookup with a condition

后端 未结 0 1618
一生所求
一生所求 2020-12-17 00:18

I am trying to use the $lookup aggregation to search for some related docs in the same collection, but I want to stop the lookup once a condition is met. Below is an example

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