Ash.Query.distinct
You're seeing just the function
distinct
, go back to Ash.Query module for more information.
Specs
distinct(t() | Ash.Resource.t(), Ash.Sort.t()) :: t()
Get results distinct on the provided fields.
Takes a list of fields to distinct on. Each call is additive, so to remove the distinct
use
unset/2
.
Examples:
Ash.Query.distinct(query, [:first_name, :last_name])
Ash.Query.distinct(query, :email)