I'm wondering:
Is it possible to block a document create from a server function that is subscribed to the create event?
As means of an additional layer of security?
For my use case it would be to prevent muted users from sending messages during their mute period.
Like a middleware-function? That will be cool but as of now Appwrite function can't go in between some processes.
What you can do now:
- Change permission to a collection - by specific roles for example.
- Delete them right away - this is probably not what you've been looking for.
i typically prevent creation via the API and expose a function to create the document. the function can do any validation and only create the document if validation passes
Okay, makes sense, thanks guys ๐
create 2 fx. make one for validation and other whatever you like. second fx tigger validation fx and validation fx trigger doc. creation
Recommended threads
- script "build" was terminated by signal ...
Heyo, For some reason, my Next.js 16.0.10 version does not build properly. Here is the last logs: ``` 1063 packages installed [22.54s] $ next build โ No build...
- Auth not working on expo react native
I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my b...
- Urgent help required - Could not resolve...
I upgraded my production environment to 1.8.0 but experienced issues with appwrite running out of worker threads. I downgraded back to 1.6.1 and restored the da...