Adding the same object in multiple groups on a View

8 views
Skip to first unread message

FMessina

unread,
Aug 19, 2016, 8:21:22 AM8/19/16
to YapDatabase
Hi!

is it currently possibile to setup a view in which I can add an object to multiple groups?

To give a concrete example, I have in my database two collections: Messages and Images
An Image can be linked to multiple Messages (each image has an array containing all the messages IDs) 

This because sending the same image multiple times will not duplicate the image but will only create a new message linked to that Image

What I'm trying to achieve is creating a view that can group "Images per conversation" (based on the conversationID inside the message), so I might need to add the same Image to multiple groups
Is that possible?

If not, what would be a possible approach to this problem?

Thanks!




Reply all
Reply to author
Forward
0 new messages