Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AggregateQuerySnapshot

The results of executing an aggregation query.

class AggregateQuerySnapshot<AggregateSpecType extends AggregateSpec, AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData> {
private constructor();
readonly query: Query<AppModelType, DbModelType>;
readonly type: string;
 
data(): AggregateSpecData<AggregateSpecType>;
}

§Type Parameters

§
AggregateSpecType extends AggregateSpec
[src]
§
AppModelType = DocumentData
[src]
§
DbModelType extends DocumentData = DocumentData
[src]

§Constructors

§
new AggregateQuerySnapshot() private
[src]

§Properties

§
query: Query<AppModelType, DbModelType>
[src]

The underlying query over which the aggregations recorded in this AggregateQuerySnapshot were performed.

§
type: string
[src]

A type string to uniquely identify instances of this class.

§Methods

§
data(): AggregateSpecData<AggregateSpecType>
[src]

Returns the results of the aggregations performed over the underlying query.

The keys of the returned object will be the same as those of the AggregateSpec object specified to the aggregation method, and the values will be the corresponding aggregation result.

@return

The results of the aggregations performed over the underlying query.