public sealed class AggregateQuery : IEquatable<AggregateQuery>
Reference documentation and code samples for the Firestore API class AggregateQuery.
A query for running an aggregation over a [StructuredQuery][google.firestore.v1.StructuredQuery]. Currently only "count(*)" aggregation is supported.
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. |