Firestore v1 API - Class AggregationResult (3.1.0)

public sealed class AggregationResult : IMessage<AggregationResult>, IEquatable<AggregationResult>, IDeepCloneable<AggregationResult>, IBufferMessage, IMessage

Reference documentation and code samples for the Firestore v1 API class AggregationResult.

The result of a single bucket from a Firestore aggregation query.

The keys of aggregate_fields are the same for all results in an aggregation query, unlike document queries which can have different fields present for each result.

Inheritance

object > AggregationResult

Namespace

GoogleCloudGoogle.Cloud.FirestoreV1

Assembly

Google.Cloud.Firestore.V1.dll

Constructors

AggregationResult()

public AggregationResult()

AggregationResult(AggregationResult)

public AggregationResult(AggregationResult other)
Parameter
NameDescription
otherAggregationResult

Properties

AggregateFields

public MapField<string, Value> AggregateFields { get; }

The result of the aggregation functions, ex: COUNT(*) AS total_docs.

The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.

Property Value
TypeDescription
MapFieldstringValue