Create an ObjectId type创建ObjectId类型
Optional
inputId: string | number | Uint8Array | ObjectId | ObjectIdLikeCan be a 24 character hex string, 12 byte binary Buffer, or a number.可以是24个字符的十六进制字符串、12字节的二进制缓冲区或数字。
Static
cacheThe ObjectId bytes
Compares the equality of this ObjectId with 比较此ObjectId与otherID
.otherID
的相等性。
ObjectId instance to compare against.要与之进行比较的ObjectId实例。
Static
createStatic
createStatic
createCreates an ObjectId from a second based number, with the rest of the ObjectId zeroed out. Used for comparisons or sorting the ObjectId.从第二个数字创建ObjectId,ObjectId的其余部分为零。用于比较或排序ObjectId。
an integer number representing a number of seconds.表示秒数的整数。
Static
generateStatic
isChecks if a value can be used to create a valid bson ObjectId检查值是否可用于创建有效的bson ObjectId
any JS value任何JS值
Generated using TypeDoc
A class representation of the BSON ObjectId type.BSON ObjectId类型的类表示形式。