假如假如a集合的某个域指向b集合,而b集合的某个域有指向c集合,等等…
那么关联查询的时候怎么将bc都取出来呢?
来自酷炫的 CNodeMD
可以用mongodb中的populate 你看看这个文章 https://blog.csdn.net/WaterSprite_ct/article/details/78500997
aggregate不就是做关联查询的啊
这个不是正常的关联查询吗 a关联b b关联c populate 去查
https://bengbu-yuezhang.github.io/2018/05/06/mongodb/
我写的,了解一下
mongodb中有个$lookup 操作符 两个表联合查询用过一次。 希望对你有所帮助
CNode 社区为国内最专业的 Node.js 开源技术社区,致力于 Node.js 的技术研究。
可以用mongodb中的populate 你看看这个文章 https://blog.csdn.net/WaterSprite_ct/article/details/78500997
aggregate不就是做关联查询的啊
这个不是正常的关联查询吗 a关联b b关联c populate 去查
https://bengbu-yuezhang.github.io/2018/05/06/mongodb/
我写的,了解一下
mongodb中有个$lookup 操作符 两个表联合查询用过一次。 希望对你有所帮助