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
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- Appwrite 1.9.0 doctor fails tho database...
So i was testing in a local environment the upgrade for 1.9.0, and after getting everything into a running state, i checked the logs that shows : ``` └── Cre...
- Failed to start containers.
I'm trying to install Appwrite locally but struck on the subject point. There is no clear error in logs.