ash v1.6.5 Ash.Resource.Dsl.Count View Source
Link to this section Summary
Functions
Declares a named aggregate on the resource
Link to this section Functions
Declares a named aggregate on the resource
Examples
count :assigned_ticket_count, :reported_tickets, filter: [active: true]Arguments
:name- The field to place the aggregate in:relationship_path- The relationship or relationship path to use for the aggregate
Options
:kind- Required. The kind of the aggregate:filter- A filter to apply to the aggregate The default value is[].