Basic Theory MongoDB stores its information in documents rather than rows. Where relational databases have tables, MongoDB has collections. Every MongoDB document requires an _id, and if one isn’t present when the document is created, a special MongoDB ObjectID will be generated and added to the document at that time. You can set your own _id by setting it in the document you insert, the ObjectID is just MongoDB’s default.
MongoDB in Action Reading Note
Basic Theory MongoDB stores its information in documents rather than rows. Where relational databases have tables, MongoDB has collections. Every MongoDB document requires an _id, and if one isn’t present when the document is created, a special MongoDB ObjectID will be generated and added to the document at that time. You can set your own _id by setting it in the document you insert, the ObjectID is just MongoDB’s default.
https://blog.yorforger.cc/p/mongodb-in-action-reading-note/