Class AggregateQuery
A query for running server-side aggregations. Instances of this can be created using Count() and Aggregate(AggregateField, params AggregateField[]).
Implements
Namespace: Google.Cloud.Firestore
Assembly: Google.Cloud.Firestore.dll
Syntax
public sealed class AggregateQuery : IEquatable<AggregateQuery>
Methods
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
GetSnapshotAsync(CancellationToken)
Asynchronously takes a snapshot of the result after applying the aggregate functions on the query.
Declaration
public Task<AggregateQuerySnapshot> GetSnapshotAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A cancellation token for the operation. |
Returns
Type | Description |
---|---|
Task<AggregateQuerySnapshot> | A AggregateQuerySnapshot which contains results of the Aggregate functions. |