How can I handle Conflict errors 'if a document already exists (in collection) then I want to edit it instead'
Make an update API call instead of create
Is this the right way?
No... You're calling create document...
Yes I did, but then If the error == 409 (conflict) then it'll trigger the other function
Sorry I don't see any update document call
I'll call it here
Okay sure
Recommended threads
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...