voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
20 lines (11 loc) • 648 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) > [DocumentSnapshot](./firestore_lite.documentsnapshot.md) > [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)<!-- --><T>
true if the document exists.