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.
Aug 17, 2021 (25 months ago)
Is there a way to update a document's id field?
Kishore Nallan04:04 PM
idis 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.
Kishore Nallan04:05 PM
Indexed 2764 threads (79% resolved)
Updating Field Values in Programming
Sandro inquired about updating a field with another field's value. Jason confirmed it was currently impossible and suggested reporting the issue on GitHub.
Change in Handling `id` in Schema from Version v0.22.0
Ignacio asked about a recent change. Jason clarified that from version v0.22.0, 'id' is ignored in the schema, suggesting to use 'filter_by' instead.
Implementing ID Field Search in Schema
Jason asked John for a simpler way to implement search by ID, who confirmed the current method is still the best approach.