In mongoDB, there are two general way to connect with two tables. Manual Connection and use DBRef
Firstly init the data which was saved in the different collections.
The result:
grammar:
the example:
【MongoDB】The connection between two tables
原文:http://blog.csdn.net/sxb0841901116/article/details/40360375