The generation time of this ObjectId instance此ObjectId实例的生成时间
The generation time of this ObjectId instance此ObjectId实例的生成时间
The ObjectId bytesObjectId字节
The ObjectId bytesObjectId字节
Compares the equality of this ObjectId with 比较此otherID
.ObjectID
与其他ID的相等性。
ObjectId instance to compare against.要比较的ObjectId实例。
Returns the generation date (accurate up to the second) that this ID was generated.返回生成此ID的生成日期(精确到秒)。
Returns the ObjectId id as a 24 character hex string representation以24个字符的十六进制字符串表示形式返回ObjectId id
Converts to its JSON the 24 character hex string representation.将24个字符的十六进制字符串表示转换为JSON。
Converts the id into a 24 character hex string for printing将id转换为24个字符的十六进制字符串进行打印
The Buffer toString format parameter.Buffer toString格式参数。
Creates an ObjectId from a hex string representation of an ObjectId.从ObjectId的十六进制字符串表示创建ObjectId。
create a ObjectId from a passed in 24 character hexstring.从传入的24个字符的十六进制字符串创建ObjectId。
Creates an ObjectId from a second based number, with the rest of the ObjectId zeroed out. 从第二个数字创建ObjectId,其余ObjectId为零。Used for comparisons or sorting the ObjectId.用于比较或排序ObjectId。
an integer number representing a number of seconds.表示秒数的整数。
Generate a 12 byte id buffer used in ObjectId's生成ObjectId中使用的12字节id缓冲区
pass in a second based timestamp.传递基于秒的时间戳。
Checks if a value is a valid bson ObjectId检查值是否为有效的bson ObjectId
ObjectId instance to validate.要验证的ObjectId实例。
Generated using TypeDoc
A class representation of the BSON ObjectId type.BSON ObjectId类型的类表示。