Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

getFirestore

Returns the existing default Firestore instance that is associated with the default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new instance with default settings.

function getFirestore(): Firestore;
function getFirestore(app: FirebaseApp): Firestore;
function getFirestore(databaseId: string): Firestore;
function getFirestore(app: FirebaseApp, databaseId: string): Firestore;
§
getFirestore(): Firestore
[src]

Returns the existing default Firestore instance that is associated with the default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new instance with default settings.

§Return Type

§

The default Firestore instance of the default app.

§
getFirestore(app: FirebaseApp): Firestore
[src]

Returns the existing default Firestore instance that is associated with the provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new instance with default settings.

§Parameters

§
  • The {@link @firebase/app#FirebaseApp} instance that the returned Firestore instance is associated with.

§Return Type

§

The default Firestore instance of the provided app.

§
getFirestore(databaseId: string): Firestore
[src]

Returns the existing named Firestore instance that is associated with the default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new instance with default settings.

§Parameters

§
databaseId: string
[src]
  • The name of the database.

§Return Type

§

The named Firestore instance of the default app.

§
getFirestore(app: FirebaseApp, databaseId: string): Firestore
[src]

Returns the existing named Firestore instance that is associated with the provided {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new instance with default settings.

§Parameters

§
  • The {@link @firebase/app#FirebaseApp} instance that the returned Firestore instance is associated with.
§
databaseId: string
[src]
  • The name of the database.

§Return Type

§

The named Firestore instance of the provided app.