voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (15 loc) • 914 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) > [Transaction](./firestore_lite.transaction.md) > [get](./firestore_lite.transaction.get.md)
## Transaction.get() method
Reads the document referenced by the provided [DocumentReference](./firestore_.documentreference.md)<!-- -->.
<b>Signature:</b>
```typescript
get<T>(documentRef: DocumentReference<T>): Promise<DocumentSnapshot<T>>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| documentRef | [DocumentReference](./firestore_lite.documentreference.md)<!-- --><T> | A reference to the document to be read. |
<b>Returns:</b>
Promise<[DocumentSnapshot](./firestore_lite.documentsnapshot.md)<!-- --><T>>
A `DocumentSnapshot` with the read data.