voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
18 lines (10 loc) • 635 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [/](./firestore_.md) > [DocumentSnapshot](./firestore_.documentsnapshot.md) > [exists](./firestore_.documentsnapshot.exists.md)
## DocumentSnapshot.exists() method
Property of the `DocumentSnapshot` that signals whether or not the data exists. True if the document exists.
<b>Signature:</b>
```typescript
exists(): this is QueryDocumentSnapshot<T>;
```
<b>Returns:</b>
this is [QueryDocumentSnapshot](./firestore_.querydocumentsnapshot.md)<!-- --><T>