UNPKG

veritatisdoloremque

Version:
26 lines (15 loc) 1.13 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [FirestoreDataConverter](./firestore_.firestoredataconverter.md) &gt; [fromFirestore](./firestore_.firestoredataconverter.fromfirestore.md) ## FirestoreDataConverter.fromFirestore() method Called by the Firestore SDK to convert Firestore data into an object of type T. You can access your data by calling: `snapshot.data(options)`<!-- -->. <b>Signature:</b> ```typescript fromFirestore(snapshot: QueryDocumentSnapshot<DocumentData>, options?: SnapshotOptions): T; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | snapshot | [QueryDocumentSnapshot](./firestore_.querydocumentsnapshot.md)<!-- -->&lt;[DocumentData](./firestore_.documentdata.md)<!-- -->&gt; | A <code>QueryDocumentSnapshot</code> containing your data and metadata. | | options | [SnapshotOptions](./firestore_.snapshotoptions.md) | The <code>SnapshotOptions</code> from the initial call to <code>data()</code>. | <b>Returns:</b> T