collectionGroup method

  1. @override
CollectionReference<Map<String, dynamic>> collectionGroup(
  1. String collectionId
)
override

Gets a Query for the specified collection group.

Implementation

@override
CollectionReference<Map<String, dynamic>> collectionGroup(
    String collectionId) {
  assert(!collectionId.contains('/'), 'Collection ID should not contain "/"');
  return MockCollectionReference(
    this,
    collectionId,
    buildTreeIncludingCollectionId(_root, _root, collectionId, {}),
    _docsData,
    buildTreeIncludingCollectionId(_snapshotStreamControllerRoot,
        _snapshotStreamControllerRoot, collectionId, {}),
    isCollectionGroup: true,
  );
}