Class ArrayGroupQuery
A grouping over the elements of an array, as every provider receives it: what to group, how to aggregate, which
objects take part and, for WithWindow, the window over the groups. One request serves execution and SQL
preview, so the previewed SQL is the SQL that runs.
public sealed class ArrayGroupQuery
Inheritance
Properties
Aggregations
Aggregates over the elements of each group, with their aliases.
public required IReadOnlyList<AggregateRequest> Aggregations { get; init; }
ArrayPath
Path to the array whose elements are grouped, through classes and arrays, joined with dots:
public required string ArrayPath { get; init; }
Filter
Condition on the owning objects (the query's Where), or null.
public FilterExpression? Filter { get; init; }
FilterJson
Condition on the owning objects in the facet JSON of the free provider, or null. Used by the free tree path
public string? FilterJson { get; init; }
GroupFields
Group keys: paths of element fields (Type, Address.City) or
public required IReadOnlyList<GroupFieldRequest> GroupFields { get; init; }
HavingJson
HAVING in the JSON of HavingPredicateParser, or null.
public string? HavingJson { get; init; }
Methods
EnsureValid()
Refuses a request no generator can answer: no array path, no key, a key or aggregate without a path or alias,
public void EnsureValid()