Rank 2: Process
Hey!
Since we don't have any way to do conditional document access, we have to lock down all permissions and roll our own APIs.
Now I'm having another problem, since we cannot do OR queries, we might not be able to achieve optimal document fetching even server-side.
Take this basic example:
We want to get all documents from a collection, that is either non-private or owned by the user.
Pseudo SQL:
SELECT * FROM Posts WHERE status !== 'private' OR $user.id == ownerIs there a way to achieve this?