View Source Loupe.Ecto.Filter behaviour (Loupe v0.9.0)

Module to implement various filter depending on field type. This is how we build query with Ecto depending on the kind of field we receive

Link to this section Summary

Functions

Access a composite field dynamically

Unwraps literal

Link to this section Callbacks

Link to this callback

apply_bounded_filter(predicate, t)

View Source
@callback apply_bounded_filter(Loupe.Language.Ast.predicate(), Loupe.Ecto.Context.t()) ::
  Ecto.Query.t()

Link to this section Functions

Link to this macro

composite_access(field, composite_field)

View Source (macro)

Access a composite field dynamically

Link to this function

unwrap(boolean, context)

View Source

Unwraps literal