Concept Flow - Auto-generated _id behavior
Insert Document
Check for _id field
Use given _id
Store Document with _id
Return Insert Result with _id
When inserting a document, MongoDB checks if _id is present. If not, it creates a unique ObjectId automatically and stores the document with it.