View Source Ash.Query.Aggregate (ash v2.6.0)
Represents an aggregated association value
Link to this section Summary
Functions
Create a new aggregate, used with Query.aggregate
or Api.aggregate
Link to this section Types
@type kind() :: :custom | :avg | :min | :max | :list | :sum | :first | :count
Link to this section Functions
Create a new aggregate, used with Query.aggregate
or Api.aggregate
Options:
path
: Used when adding an aggregate to a query.query
: A base query to use for the aggregatefield
: The field to aggregatedefault
: A default value for the aggregatefilterable?
: Wether or not it should be filterabletype
: A type for the aggregateconstraints
: Type constraints for the aggregate's typeimplementation
: The implementation module for custom aggregates
Link to this function
new(resource, name, kind, relationship, query, field, default \\ nil, filterable? \\ true, type \\ nil, constraints \\ [], implementation \\ nil)
View Source
Link to this function