Write a single query from multiple queries in MongoDB
I have 2 collections users and files. A user document looks like this : { "_id": "user1", "name": "John" } A file document looks like this : { "_id": "fileID1", "url": "any_url", "userID": "user1" } I have a list of…