
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 == owner
Is there a way to achieve this?

How can we do OR queries?

Currently, there is no support for OR queries, check this issue: https://github.com/appwrite/appwrite/issues/2740

Thanks!

[CLOSED] How can we do OR queries?
Recommended threads
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
- 1.7.0 Self Hosted Upgrade
Hi, I've tried a fresh install on 1.7.0 and I've also done a fresh install on 1.6.2. 1.6.2 is working fine fresh, update to 1.7.0 and migrate fails Fresh inst...
