0

Well, the problem is the following:

I have two collections:

Users: id, name, img, contacts: [id, aliasName]

Conversations: id, sender, receiver, timestamp, messages: […]

What I want and that I can’t achieve is to get a list of conversations for a given user but, for each conversation, I need to retrieve the name of the receiver and sender User with an alias if possible like senderName/receiverName.

Is this possible with Mongo?

Thanks in advance!

Majid Hajibaba
  • 2,834
  • 6
  • 19
  • 46

0 Answers0