Constructors
constructor
- new ObjectId(inputId?): ObjectId
Properties
_bsontype
_bsontype: "ObjectID"
Static
cacheHexString
cacheHexString: boolean
Accessors
generationTime
- get generationTime(): number
Returns number
- set generationTime(value): void
Returns void
id
- get id(): Uint8Array
Returns Uint8Array
Methods
equals
- equals(otherId): boolean
Returns boolean
getTimestamp
- getTimestamp(): Date
Returns Date
inspect
- inspect(): string
Returns string
toHexString
- toHexString(): string
Returns string
toJSON
- toJSON(): string
Returns string
toString
- toString(format?): string
Returns string
Static
createFromHexString
- createFromHexString(hexString): ObjectId
Static
createFromTime
- createFromTime(time): ObjectId
Static
generate
- generate(time?): Uint8Array
Returns Uint8Array
Static
isValid
- isValid(id): boolean
Returns boolean
A class representation of the BSON ObjectId type.