count static method

Creates an AggregateField that counts the documents in the result set.

Read the result with AggregateQuerySnapshot.count. Query.count() is a shortcut for an aggregation with only this field.

Implementation

static CountAggregateField count() => CountAggregateField._();