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
- Error updating attribute in table with r...
I have two tables with a bidirectional relationship attribute, one called "amenities" and the other "reservations". When I try to update a field called "pricePe...
- Bandwidth limit for your organization ha...
I received an alert that I exceeded the Free plan bandwidth limit (showing 5.86 GB), but my dashboard tells a different story. The usage stats there are much lo...
- cli broke with new varchar type??
``` appwrite types ./appwritetypes ℹ Info: Detected language: ts ℹ Info: Directory: ./...