collectionGroup method

Query<Map<String, dynamic>> collectionGroup(
  1. String collectionPath
)

Gets a Query for the specified collection group.

Implementation

Query<Map<String, dynamic>> collectionGroup(String collectionPath) {
  if (collectionPath.isEmpty) {
    throw ArgumentError('A collection path must be a non-empty string.');
  } else if (collectionPath.contains('/')) {
    throw ArgumentError(
      'A collection path passed to collectionGroup() cannot contain "/".',
    );
  }

  return _JsonQuery(this, _delegate.collectionGroup(collectionPath));
}