mongodb join multiple collections [duplicate]
问题 This question already has answers here : Multiple join conditions using the $lookup operator (4 answers) Closed 2 years ago . I'd like to "join" 3 Collections in MongoDB by using mongochef. The collections are "Order", "Employee" and "City". I tried to use temp collections, but it is not effective. Now I am using var = a for the first "join". If I 'd like to show "a", there are displayed 20 results only. Do you have an idea or another solution? var a = db.Order.aggregate([ { $lookup: { from: