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
- getFileViewURL in react native not retur...
Hi everyone, im trying to get the file url from storage but when i use the getFileViewURL method i get a url that looks like this: "https://fra.cloud.appwrite....
- User management question
What is the best way to keep a user signed in between app restarts while having sessions expire every hour and beign refreshed? I try to call account.get() but ...
- Invalid Document structure
I have a database with a collection with the next atributes: - Racha [Integer] - Monedas [Integer] When I try to change the value of this fields in appwrite I'...
