initializeFirestore method

Firestore initializeFirestore(
  1. App app, [
  2. FirestoreSettings settings,
  3. String databaseId
])

Gets the named {@link https://googleapis.dev/nodejs/firestore/latest/Firestore.html | Firestore} service for the given app, passing extra parameters to its constructor.

@example

// Get the Firestore service for a specific app, require HTTP/1.1 REST transport
const otherFirestore = initializeFirestore(app, {preferRest: true}, 'otherDb');

@param app - which Firestore service to return.

@param settings - Settings object to be passed to the constructor.

@param databaseId - name of database to return.

@returns The named Firestore service associated with the provided app and settings. @beta

Implementation

external Firestore initializeFirestore(
  App app, [
  FirestoreSettings settings,
  String databaseId,
]);