Firestore class

The Cloud Firestore service interface.

Do not call this constructor directly. Instead, use getFirestore().

Signature:

export declare class Firestore 

Properties

Property Modifiers Type Description
app FirebaseApp The FirebaseApp associated with this Firestore service instance.
type 'firestore-lite' | 'firestore' Whether it's a Firestore or Firestore Lite instance.

Methods

Method Modifiers Description
toJSON() Returns a JSON-serializable representation of this Firestore instance.

Firestore.app

The FirebaseApp associated with this Firestore service instance.

Signature:

get app(): FirebaseApp;

Firestore.type

Whether it's a Firestore or Firestore Lite instance.

Signature:

type: 'firestore-lite' | 'firestore';

Firestore.toJSON()

Returns a JSON-serializable representation of this Firestore instance.

Signature:

toJSON(): object;

Returns:

object