You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[getFirestore(app)](./firestore_.md#getfirestore_cf608e1)| Returns the existing default [Firestore](./firestore_.firestore.md#firestore_class) instance that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with default settings. |
20
20
|[getFirestore(app, databaseId)](./firestore_.md#getfirestore_48de6cb)| <b><i>(Public Preview)</i></b> Returns the existing named [Firestore](./firestore_.firestore.md#firestore_class) instance that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with default settings. |
21
21
|[initializeFirestore(app, settings, databaseId)](./firestore_.md#initializefirestore_fc7d200)| Initializes a new instance of [Firestore](./firestore_.firestore.md#firestore_class) with the provided settings. Can only be called before any other function, including [getFirestore()](./firestore_.md#getfirestore)<!---->. If the custom settings are empty, this function is equivalent to calling [getFirestore()](./firestore_.md#getfirestore)<!---->. |
22
+
| <b>function(db, ...)</b> |
23
+
|[documentSnapshotFromJSON(db, json)](./firestore_.md#documentsnapshotfromjson_a318ff2)| Builds a <code>DocumentSnapshot</code> instance from a JSON object created by [DocumentSnapshot.toJSON()](./firestore_.documentsnapshot.md#documentsnapshottojson)<!---->. |
24
+
|[documentSnapshotFromJSON(db, json, converter)](./firestore_.md#documentsnapshotfromjson_ddb369d)| Builds a <code>DocumentSnapshot</code> instance from a JSON object created by [DocumentSnapshot.toJSON()](./firestore_.documentsnapshot.md#documentsnapshottojson)<!---->. |
25
+
|[querySnapshotFromJSON(db, json)](./firestore_.md#querysnapshotfromjson_a318ff2)| Builds a <code>QuerySnapshot</code> instance from a JSON object created by [QuerySnapshot.toJSON()](./firestore_.querysnapshot.md#querysnapshottojson)<!---->. |
26
+
|[querySnapshotFromJSON(db, json, converter)](./firestore_.md#querysnapshotfromjson_ddb369d)| Builds a <code>QuerySnapshot</code> instance from a JSON object created by [QuerySnapshot.toJSON()](./firestore_.querysnapshot.md#querysnapshottojson)<!---->. |
22
27
| <b>function(firestore, ...)</b> |
23
28
| [clearIndexedDbPersistence(firestore)](./firestore_.md#clearindexeddbpersistence_231a8e0) | Clears the persistent storage. This includes pending writes and cached documents.<!-- -->Must be called while the [Firestore](./firestore_.firestore.md#firestore_class) instance is not started (after the app is terminated or when the app is first initialized). On startup, this function must be called before other functions (other than [initializeFirestore()](./firestore_.md#initializefirestore_fc7d200) or [getFirestore()](./firestore_.md#getfirestore)<!-- -->)). If the [Firestore](./firestore_.firestore.md#firestore_class) instance is still running, the promise will be rejected with the error code of <code>failed-precondition</code>.<!-- -->Note: <code>clearIndexedDbPersistence()</code> is primarily intended to help write reliable tests that use Cloud Firestore. It uses an efficient mechanism for dropping existing data but does not attempt to securely overwrite or otherwise make cached data unrecoverable. For applications that are sensitive to the disclosure of cached data in between user sessions, we strongly recommend not enabling persistence at all. |
24
29
|[collection(firestore, path, pathSegments)](./firestore_.md#collection_1eb4c23)| Gets a <code>CollectionReference</code> instance that refers to the collection at the specified absolute path. |
Builds a `DocumentSnapshot` instance from a JSON object created by [DocumentSnapshot.toJSON()](./firestore_.documentsnapshot.md#documentsnapshottojson)<!---->.
an instance of [DocumentSnapshot](./firestore_.documentsnapshot.md#documentsnapshot_class) if the JSON object could be parsed. Throws a [FirestoreError](./firestore_.firestoreerror.md#firestoreerror_class) if an error occurs.
Builds a `DocumentSnapshot` instance from a JSON object created by [DocumentSnapshot.toJSON()](./firestore_.documentsnapshot.md#documentsnapshottojson)<!---->.
| db |[Firestore](./firestore_.firestore.md#firestore_class)||
354
+
| json | object | a JSON object represention of a <code>DocumentSnapshot</code> instance. |
355
+
| converter |[FirestoreDataConverter](./firestore_.firestoredataconverter.md#firestoredataconverter_interface)<!----><AppModelType, DbModelType>| Converts objects to and from Firestore. |
an instance of [DocumentSnapshot](./firestore_.documentsnapshot.md#documentsnapshot_class) if the JSON object could be parsed. Throws a [FirestoreError](./firestore_.firestoreerror.md#firestoreerror_class) if an error occurs.
an instance of [QuerySnapshot](./firestore_.querysnapshot.md#querysnapshot_class) if the JSON object could be parsed. Throws a [FirestoreError](./firestore_.firestoreerror.md#firestoreerror_class) if an error occurs.
| db |[Firestore](./firestore_.firestore.md#firestore_class)||
401
+
| json | object | a JSON object represention of a <code>QuerySnapshot</code> instance. |
402
+
| converter |[FirestoreDataConverter](./firestore_.firestoredataconverter.md#firestoredataconverter_interface)<!----><AppModelType, DbModelType>| Converts objects to and from Firestore. |
an instance of [QuerySnapshot](./firestore_.querysnapshot.md#querysnapshot_class) if the JSON object could be parsed. Throws a [FirestoreError](./firestore_.firestoreerror.md#firestoreerror_class) if an error occurs.
0 commit comments