Home > @firebase/firestore > lite > CollectionReference > parent
CollectionReference.parent property
A reference to the containing DocumentReference
if this is a subcollection. If this isn't a subcollection, the reference is null.
Signature:
get parent(): DocumentReference<DocumentData> | null;