voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
21 lines (12 loc) • 569 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [lite](./firestore_lite.md) > [QueryDocumentSnapshot](./firestore_lite.querydocumentsnapshot.md) > [data](./firestore_lite.querydocumentsnapshot.data.md)
## QueryDocumentSnapshot.data() method
Retrieves all fields in the document as an `Object`<!-- -->.
<b>Signature:</b>
```typescript
/** @override */
data(): T;
```
<b>Returns:</b>
T
An `Object` containing all fields in the document.