I just want to know that how will I update the existing record _id
by its _id
. It means that suppose there is a record and that having an objectId
given like below:
"_id" : ObjectId("5b3b5607638ea66f51508913"),
And I want to update this id into a integer. I also read the mongodb documentation of updation but it only update the other field how will I update the id to the integer form like "_id" : 1,
this. Is there any method of doing this.