View Source GoogleApi.Datastore.V1.Model.AggregationResult (google_api_datastore v0.22.0)

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.

Attributes

  • aggregateProperties (type: %{optional(String.t) => GoogleApi.Datastore.V1.Model.Value.t}, default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Datastore.V1.Model.AggregationResult{
  aggregateProperties:
    %{optional(String.t()) => GoogleApi.Datastore.V1.Model.Value.t()} | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.