updateDocument() throws "document_already_exists" error instead of updating existing document
- 0
- Databases
- Web
- Cloud

Hi guys, im using server sdk to update appwrite attribute value which relationship type. But facing "document_already_exists", may i know why?

let updated = await databases.updateDocument( process.env.APPWRITE_DATABASE_KEY || "DEFAULT_DATABASE_ID", process.env.APPWRITE_DESCENDANT_IDENTITY_CREDENTIALS || "DEFAULT_DESCENDANT_IDENTITY_CREDENTIALS", id_dic, { mobile_device: "1dcffa65-7f23-4c08-a7f2-2358d59a621e", } );
Recommended threads
- rror creating Appwrite user: User (role:...
I do not understand, I have tryied everything tryable to make this error go away, I have absolutely no more ideas on how should I correct this. Anything can hel...
- Is it possible to initialize an Appwrite...
If I provide a project repository to someone, and within that repo there is an `appwrite.json`, is it possible to initialize the project in Appwrite from scratc...
- Realtime listener does not get update wh...
listener (flutter) ``` realtime .subscribe(['databases.6882943XXXXX.tables.public.rows.main']) .stream .listen((message) { print(message); });``` ...
