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
- Bulk API limitations in self-hosted serv...
Environment: Appwrite Selfhost SDK: node-appwrite 28.0 Calling `upsertRows` (also applies to `createRows`/`updateRows`/`deleteRows`) with more than 100 rows fa...
- Android SDK: Kotlin null Value Not Updat...
Hi team, I think you should check the Android SDK implementation once, as it seems to have an issue handling Kotlin **null** values. For example: When I send:...
- IMPORTANT! SOC-2 Request Failing
Issue requesting SOC-2. If tried other/private browser as well as filling in optional fields.