<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [lite](./firestore_lite.md) &gt; [DocumentSnapshot](./firestore_lite.documentsnapshot.md) &gt; [exists](./firestore_lite.documentsnapshot.exists.md)

## DocumentSnapshot.exists() method

Signals whether or not the document at the snapshot's location exists.

<b>Signature:</b>

```typescript
exists(): this is QueryDocumentSnapshot<T>;
```
<b>Returns:</b>

this is [QueryDocumentSnapshot](./firestore_lite.querydocumentsnapshot.md)<!-- -->&lt;T&gt;

true if the document exists.

