Hi,
I'm creating a database where some documents are "Public" and others are "Private". I want the public documents to appear for everyone but the private documents to appear only for the tagged users. I want all relevant documents to appear together in a list.
It is easy to set up these rules in firestore but I can't find a method to query and get both types of documents without an error occurring. Instead, I think I would need 1 query for public documents and a second query for tagged documents. However, then the items wouldn't show up in the same list. Any suggestions?
For example, I might have the following documents in my collection...
-Public doc 1
-Public doc 2
-Private doc "user A"
-Private doc "user B"
For user A I want a query that will return the first 3 documents.
Thanks!