Represents a BSON ObjectId type in Firestore documents.

BsonObjectId

**Signature:**

    export declare class BsonObjectId 

## Constructors

| Constructor | Modifiers | Description |
|---|---|---|
| [(constructor)(value)](https://firebase.google.com/docs/reference/js/firestore_lite.bsonobjectid#bsonobjectidconstructor) |   | Constructs a new instance of the `BsonObjectId` class |

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [value](https://firebase.google.com/docs/reference/js/firestore_lite.bsonobjectid#bsonobjectidvalue) |   | string |   |

## Methods

| Method | Modifiers | Description |
|---|---|---|
| [isEqual(other)](https://firebase.google.com/docs/reference/js/firestore_lite.bsonobjectid#bsonobjectidisequal) |   | 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](https://firebase.google.com/docs/reference/js/firestore_lite.bsonobjectid#bsonobjectid_class) | The `BsonObjectId` to compare against. 'true' if this `BsonObjectId` is equal to the provided one. |

**Returns:**

boolean