parent property

CollectionReference<T> get parent

The collection this document is in. It keeps the converter of this reference (as in the JS SDK; the main library of this package returns an unconverted collection).

Implementation

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