new BsonObjectId() Represents a BSON ObjectId type in Firestore documents. Methods isEqual() Returns true if the two BsonObjectId values have the same pattern and options, returns false otherwise.