carbond.ObjectIdGenerator

extends IdGenerator

Generates ObjectId IDs

Instance Properties

generateStrings
boolean
Default false
Description Whether or not to return a string representation of the ObjectId

Methods

generateId
overrides generateId
Returns Returns the ObjectId instance of a string if configured to do so
Return type ObjectId | string
Description Generates an ObjectId