View Source Ash.Query.Aggregate (ash v2.6.1)
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 aggregatesuniq?
: Wether or not the aggregate should be over unique values
Link to this function
new(resource, name, kind, relationship, query, field, default \\ nil, filterable? \\ true, type \\ nil, constraints \\ [], implementation \\ nil, uniq? \\ false)
View Source
This function is deprecated. Use `new/4` instead..
Link to this function