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
- Cant get realtime working
Hey I nned some help with realtime a gain. I was using client.subscribe(...), and i found out that its depricated then i believe realtime.subscribe(...) is the ...
- Firebase app import
I'm **very** new to appwrite and I just set up appwrite with docker and I'm trying to import a Firebase app I have set up but it's erroring and I don't really k...
- Console infinite loading behind NginxPro...
Hi All, I am trying to get AppWrite to work behind NPM. I've followed the Medium guide to set proper headers, I've added my proxy configuration to NPM, and I ...