MongoDB Structure for message app
I see that this question is old, but for anyone interested, a similar question was asked and one answer looks viable https://stackoverflow.com/a/30830429/132610 Conversation : { id: 123, members: [ user_id1, user_id2 ] } Message { conversationId: 123, author: user_2, body: ‘Hi what’s up’ } Message { conversationId: 123, author: user_1, body: ‘Whanna ask some question … Read more