I have two tables in Mongo - users
and departments
, and we want to get users and the related department (using department_id
from users table) .
Using MySQL, I can just make a simple join on department_id.
But, how can I do the same in MongoDB?