Back

Document already existed

  • 0
  • Databases
  • Functions
  • Cloud
So Skrr
2 Apr, 2025, 17:54

Hi, I am trying to add a document via cloud function using nodejs22. Everytime I do await db.createDocument( dbid, collectionid, customDocId, data); it will generate an error saying document already existed. I tried with ID.unique(). Didn't work as well.

TL;DR
null
So Skrr
2 Apr, 2025, 17:55

I can only add a document to that collection if it is empty

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more