Home > @firebase/firestore > lite > DocumentSnapshot > exists
DocumentSnapshot.exists() method
Signals whether or not the document at the snapshot's location exists.
Signature:
exists(): this is QueryDocumentSnapshot<T>;
Returns:
this is QueryDocumentSnapshot<T>
true if the document exists.