
My code:
await databases.createDocument( process.env.APPWRITE_DATABASE, process.env.APPWRITE_COLLECTION_USER, data.userId, {}, [ Permission.read(Role.user(data.userId)), Permission.update(Role.user(data.userId)), ] );
It keeps throwing this error at me, but the thing is that all the fields in my user collection are optional, so there is no reason for me to set any fields right?
Recommended threads
- I keep getting this error and idk why i ...
- TLS certificate Issue
I am getting a issue when i try to add a custom domain in my appwrite ``` Requested host does not match any Subject Alternative Names (SANs) on TLS certificate...
- Cloud UI doesn't show rows and columns o...
The new cloud UI seems dysfunctional, can see any of my data; on click it doesn't show the db data. doesn't let me choose how much data per page etc etc. Attach...
