How to do a lookup of several collections MONGODB

0

Good I have a main collection, which has an ObjectID attribute that references one of two collections. Depending on another attribute (Boolean), I have to join with one of the collections. If I want to list all the documents in the main collection, how do I merge with the other two collections?

Cumps

    
asked by anonymous 04.02.2018 / 22:59

0 answers