I don't understand how creating a collection of pointers to Events and Users will help? I need to show all events so this will be my primary query. From what I understand a "pointer" points to the automatically created id in a collection. So it's impossible to query one collection and search for a value in another collection if it has a 1 to many relationship. 1 Event will have many users who will go to it.
Querying this new collection with pointers to both users and events will only return values where the user has elected to go to the event. In other words it won't show all the available events.
Think of a dating site, you view all people in a search and if you have communicated or winked or whatever, you can see that you've communicated with them. And you can also see people you haven't communicated with. This site would have a collection with profile and another collection storing people you have communicated with.
This is essentially what I'm trying to do. Show a list of all available events and show a tick image for all those events I have inidicated I'm going to. I have a collection of all events. I have another collection of events I have indicated I will go to. I want to show all the events and show a tick for the ones I'm going to.
Sample Data
colEvents:
Event1
Event2
Event3
colAttend:
User1, Event1
User2, Event1
User2, Event2
Example of What I want to display if I am user1
Event1, show tick
Event2, no tick
Event3, no tick
Example of What I want to display if I am user2
Event1, show tick
Event2, show tick
Event3, no tick
Example of What I want to display if I am user3 (there is no data in colAttend for User3 because they have not indicated they are attending any event)
Event1, no tick
Event2, no tick
Event3, no tick