Home > @firebase/firestore > lite > FirestoreDataConverter > fromFirestore
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().
Signature:
fromFirestore(snapshot: QueryDocumentSnapshot<DocumentData>): T;
Parameters
| Parameter | Type | Description |
|---|---|---|
| snapshot | QueryDocumentSnapshot<DocumentData> | A QueryDocumentSnapshot containing your data and metadata. |
Returns:
T