ash v0.6.3 Ash.Filter View Source

The representation of a filter in Ash.

Ash filters are stored as nested Ash.Filter.Expression{} and %Ash.Filter.Not{} structs, terminating in a %Ash.Filter.Predicate{} struct. An expression is simply a boolean operator and the left and right hand side of that operator.

Link to this section Summary

Link to this section Functions

Link to this function

add_to_filter(base, op \\ :and, addition)

View Source
Link to this function

add_to_filter!(base, op \\ :and, addition)

View Source
Link to this function

do_map(expression, func)

View Source
Link to this function

do_reduce(expression, acc, func)

View Source
Link to this function

parse(api, resource, statement)

View Source
Link to this function

parse!(api, resource, statement)

View Source
Link to this function

reduce(filter, acc \\ nil, func)

View Source
Link to this function

relationship_filter_request_paths(filter)

View Source
Link to this function

relationship_paths(expression)

View Source
Link to this function

strict_subset_of(filter, candidate)

View Source

Returns true if the second argument is a strict subset (always returns the same or less data) of the first

Link to this function

strict_subset_of?(filter, candidate)

View Source