Back

Appwrite Document ID

  • 0
  • Databases
  • Cloud
Zionnite
11 Jun, 2024, 18:10

hello, is it possible to change existing document ID.

in my app, user sign-up with their phone number and email, but i used their phone number as a Document ID in Users Collection, for some unforseen circumstance i made changes to my code and i will love to update or replace some of those ID's,

please how do i do this?

TL;DR
Developers wants to change existing Document ID in Users Collection from phone number to email due to code changes. This can be done by creating a new document with the desired ID and copying over the data, then deleting the old document.
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