Accessing db collection with document permission from server side
- 0
- Self Hosted
- Functions
- Databases
Hi, struggling with accessing db collection with document permission from server side. An example:
- I have collection with document permission enabled named
user_file_queue, where authenticated users save URL of file to download. - I have a NodeJS server function, that should go over
user_file_queuerecords and download those files (started by CRON). - Also, there is another table, called
user_downloaded_files, where file_id is saved after file is download to bucket.
How can I get all records from user_file_queue as server side function? As it stated in docs:
When using a Server SDK in combination with the proper API key scopes, you can have any type of access to any of your project resources regardless of their permissions.
I assume that server function should have access to all documents in the table, but seems like that is not the case as db.listDocuments() returns 0 rows. Any help is appreciated, thank you.
Recommended threads
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- Is this normal in the self host custom d...
when i try to add custom domain to the project did not see this in 1.8.0 ok when pressed the retry it says "DNS verification failed with resolver 8.8.8.8. Domai...
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?