
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
- unexpected row_invalid_structure error
In images you can see both my code,error, column schema I do have timezone in table schema but still while creating a row i am receving row_invalid_structure e...
- Internal 500 Server Error
I don't have much information but I am unable to create anything on database, Auth users are creating but not able to fetch into database
- CORS + 401 Error with Appwrite Authentic...
I'm getting a CORS + 401 Error with Appwrite Authentication Access to fetch at 'https://cloud.appwrite.io/v1/account/sessions/email' from origin 'https://my-c...
