parent property

CollectionReference<T> get parent

Gets a CollectionReference to the collection that contains this document.

Returns the CollectionReference that contains this document, with the converter of this reference.

Implementation

CollectionReference<T> get parent {
  return CollectionReferenceInternal.create<T>(
    key.path.popLast(),
    firestore,
    converter,
  );
}