I’m using the Google Maps component to show local events. The map is a collection of events. I need to show only SOME events to all users and ALL events to only “Verified” users.
I have two databases. The Users database has a toggle to specify if they are “Verified”. The Events database has a toggle to specify if the event is “Public?”.
If “Public? = true” the marker should be visible to all users. If “Public? = false” the event should only be visible to verified users.
I have tried everything and can’t figure out how to filter the markers since they are representing events and not users. I know I could add a property to the Events collection that would automatically add all verified users to the event and then add a filter on the map to check if the user is attached to the event, but that seems like it would use up way too much data and slow the app.
Any Ideas??