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