What is ObjectId in MongoDB and how to generate it manually when required

added by JavaScript Kicks
1/3/2020 9:02:17 AM

430 Views

ObjectId is autogenerated when we insert any new record / document When working with MongoDB you might have noticed that, when we insert any document in the collection, an extra field with name _id is generated.The value of the generated _id is not any random number but its a value which is unique across all the databases in the world.


0 comments