Hello guys,
I’m trying to join two collections in mongodb to get all data from a collection and only the commun ones FROM the other collection any idea if it’s possible to do this in mongodb? if yes how to?
thanks in advance
Hi,
Yes, you can join 2 collections with Aggregation Framework and $unionWith
stage.
Here are the docs with syntax and examples, so you can check how to do it.