<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [DocumentSnapshot](./firestore_.documentsnapshot.md) &gt; [ref](./firestore_.documentsnapshot.ref.md)

## DocumentSnapshot.ref property

The `DocumentReference` for the document included in the `DocumentSnapshot`<!-- -->.

<b>Signature:</b>

```typescript
get ref(): DocumentReference<T>;
```
