Home » Javascript » How to find the consolidated view from MongoDB collections? [on hold]

How to find the consolidated view from MongoDB collections? [on hold]

Posted by: admin August 19, 2018 Leave a comment

Questions:

I have a database called users where a number of users will be stored. I have another database called transactions which stores the transaction information. In the users database I have a collection called user and in transactions database I have a collection called transactions. I need to find whether the user has done any transactions, if yes what is the mode of transaction like Debit card/credit or net banking. Can I have the result in a single query in MongoDB ?

Answers: