View Source Filterable.Ecto.Helpers (Filterable v0.7.5)

Contains macros which allow to define widely used filters.

use Filterable.Ecto.Helpers

Example:

defmodule PostFilters do
  use Filterable.DSL
  use Filterable.Ecto.Helpers

  field :author
  field :title

  paginateable per_page: 10
  orderable [:title, :inserted_at]
end

Link to this section Summary

Link to this section Functions

Link to this macro

field(name, opts \\ [])

View Source (macro)
Link to this macro

limitable(opts \\ [])

View Source (macro)
Link to this macro

orderable(fields)

View Source (macro)
Link to this macro

paginateable(opts \\ [])

View Source (macro)