Firestore API - Class AggregateQuery (3.2.0)

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.

Inheritance

object > AggregateQuery

Namespace

GoogleCloudFirestore

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.