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
- Production down - createExecution return...
Hey, Since 1.9.6 rollout in fra (~17:00 UTC, 14 Aug), POST /v1/functions/{functionId}/executions returns a 400 whenever the body includes an empty headers ob...
- CreateRow is doing ListRows on self-host...
### setup ``` appwrite 1.9.5 self-hosted bun 1.3 node-appwrite 27.1.0 ``` ### issue Im running a function on a self hosted 1.9.5 with "node-appwrite": "^27.1.0...
- Accidental deletion of two production da...
Hello Appwrite Support, We accidentally deleted two production databases and urgently need your help restoring them. What happened: On 2026-08-14 at approxima...