objectIdGenerator

The algorithm used to generate new ObjectId instances for this collection.

For more information, see ObjectIdGenerator.

You can also directly call newId on the collection itself.