BsonObjectId class

Represents a BSON ObjectId type in Firestore documents.

BsonObjectId

Signature:

export declare class BsonObjectId 

Constructors

Constructor Modifiers Description
(constructor)(value) Constructs a new instance of the BsonObjectId class

Properties

Property Modifiers Type Description
value string

Methods

Method Modifiers Description
isEqual(other) Returns true if this BsonObjectId is equal to the provided one.

BsonObjectId.(constructor)

Constructs a new instance of the BsonObjectId class

Signature:

constructor(value: string);

Parameters

Parameter Type Description
value string

BsonObjectId.value

Signature:

readonly value: string;

BsonObjectId.isEqual()

Returns true if this BsonObjectId is equal to the provided one.

Signature:

isEqual(other: BsonObjectId): boolean;

Parameters

Parameter Type Description
other BsonObjectId The BsonObjectId to compare against. 'true' if this BsonObjectId is equal to the provided one.

Returns:

boolean