This page documents a mongosh method. This is not the documentation for a language-specific driver, such as Node.js. For MongoDB API drivers, refer to the language-specific MongoDB driver documentation. Returns a new ObjectId. The 12-byte ObjectId consists of: A 4-byte timestamp, representing the ObjectId's creation, measured in seconds since the Unix epoch. A 5-byte random value generated once pe
{{#tags}}- {{label}}
{{/tags}}