UNPKG

voluptasmollitia

Version:
18 lines (10 loc) 635 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; [DocumentSnapshot](./firestore_.documentsnapshot.md) &gt; [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)<!-- -->&lt;T&gt;