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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...