#community-help

Query on Updating Document's ID Field

TLDR Mehdi inquired about updating a document's id field. Kishore Nallan explained it's a special field and couldn't be updated, and suggested tracking this proposal through a GitHub issue.

Powered by Struct AI
ty1
4
25mo
Solved
Join the chat
Aug 17, 2021 (25 months ago)
Mehdi
Photo of md5-a3ecae8c75dfccecfa4e0116c9241a34
Mehdi
04:02 PM
Hello,
Is there a way to update a document's id field?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
04:04 PM
No, the id is a special field since it is used to locate the document and all internal storage references use it. So we don't have a way to update it.
04:05
Kishore Nallan
04:05 PM
We might be able to support it though. It's an interesting proposal to consider. Can you please create a github issue so that we can track?
Mehdi
Photo of md5-a3ecae8c75dfccecfa4e0116c9241a34
Mehdi
04:33 PM
Sure
ty1