0

When adding a document to a collection in MongoDB database, MongoDB will create a long code as a Unique Object ID. But is it unique only for this collection or for all the collections on this planet created by people all over the world all the time until the end of time?

I am just curious to know how unique this line of ID could potentially be.

Max Qiao
  • 1
  • 1
  • Does this answer your question? [Mongoose creating new document duplicate key possibility?](https://stackoverflow.com/questions/60071860/mongoose-creating-new-document-duplicate-key-possibility) – Wahyu Kristianto Mar 05 '23 at 21:58

0 Answers0