UNPKG

voluptasmollitia

Version:
27 lines (15 loc) 891 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Transaction](./firestore_.transaction.md) &gt; [get](./firestore_.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_.documentreference.md)<!-- -->&lt;T&gt; | A reference to the document to be read. | <b>Returns:</b> Promise&lt;[DocumentSnapshot](./firestore_.documentsnapshot.md)<!-- -->&lt;T&gt;&gt; A `DocumentSnapshot` with the read data.