docs-devsite/firestore_.firestore.md
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
The Cloud Firestore service interface.
Do not call this constructor directly. Instead, use getFirestore()<!-- -->.
<b>Signature:</b>
export declare class Firestore
| Property | Modifiers | Type | Description |
|---|---|---|---|
| app | FirebaseApp | The FirebaseApp associated with this <code>Firestore</code> service instance. | |
| type | 'firestore-lite' | 'firestore' | Whether it's a Firestore or Firestore Lite instance. |
| Method | Modifiers | Description |
|---|---|---|
| toJSON() | Returns a JSON-serializable representation of this <code>Firestore</code> instance. |
The FirebaseApp associated with this Firestore service instance.
<b>Signature:</b>
get app(): FirebaseApp;
Whether it's a Firestore or Firestore Lite instance.
<b>Signature:</b>
type: 'firestore-lite' | 'firestore';
Returns a JSON-serializable representation of this Firestore instance.
<b>Signature:</b>
toJSON(): object;
<b>Returns:</b>
object