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

AggregationResult

import type { AggregationResult } from "https://googleapis.deno.dev/v1/datastore:v1.ts";

The result of a single bucket from a Datastore aggregation query. The keys of aggregate_properties are the same for all results in an aggregation query, unlike entity queries which can have different fields present for each result.

interface AggregationResult {
aggregateProperties?: {
[key: string]: Value;
}
;
}

§Properties

§
aggregateProperties?: {
[key: string]: Value;
}
[src]

The result of the aggregation functions, ex: COUNT(*) AS total_entities. The key is the alias assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.