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(): Buffer
-
Returns Buffer
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?): Buffer
-
Returns Buffer
Static
isValid
- isValid(id): boolean
-
Returns boolean
A class representation of the BSON ObjectId type.