Alter/Convert ObjectId to the string value in MongoDB
Answers
Brian
2376
Points
13
Posts
|
The _id value of a document is immutable, so we can create a new copy of the document with the string type _id value from objectId type, and then delete the original document. Following will be the command look like:
OR
Posted On:
01-Jul-2020 02:10
Thanks. - Jak 02-Jul-2020 01:01
|
Blog
Active User (0)
No Active User!