after reading https://stackoverflow.com/a/44688386/2802552 how can I apply it in my case ?
[UserSchema]
name : String
[ConversationSchema]
participants : [User]
[MessageSchema]
sender : User
conversation : Conversation
content : String
I am trying to get with one query a list of conversations and its messages ONLY where the user is part of Conversation.participants
.
Thanks for your help.