I am using firebase and have all of my collection permissions set to "tagged users" on the "users" field within each of the collections. I am able to add the collections as parameters and create documents in them. When I run a query however, the query returns a null value, even though when I look in firebase the documents are there and the filtered fields match the search parameters. The query runs on page load.
It's also possible that I'm performing the task incorrectly. I am running these queries because I need to know if a matching document exists in the equipmentbyDive and divetype collections, linked to the diveLog collection by a specific field ID number. If it does exist, the user can navigate to one page (where the document is now a parameter), and if it doesn't exist, will navigate to another page (where a new document will be created in that collection).
What am I missing that is denying the query?