Firestore API - Class AggregateQuery (3.6.0)

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[]).

Inheritance

object > AggregateQuery

Namespace

Google.Cloud.Firestore

Assembly

Google.Cloud.Firestore.dll

Methods

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
int
Overrides

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
NameDescription
cancellationTokenCancellationToken

A cancellation token for the operation.

Returns
TypeDescription
TaskAggregateQuerySnapshot

A AggregateQuerySnapshot which contains results of the Aggregate functions.