Querie.Filter (Querie v1.0.0) View Source

Link to this section Summary

Link to this section Functions

Link to this function

apply(query, filter, opts \\ [])

View Source

Apply filter on multiple column

Example: %{ id: 10, not: %{

type: "work"

}, or: %{

team_id: 10,
and: %{
  team_id: 11,
  role: "manager"
}

} }

id = 10 and not (type = "work") and (team_id = 10 or (team_id = 11 and role = "manager" ))

between inclusive

Link to this function

filter(query, column, params)

View Source
Link to this function

join_ref(query, ref, opts \\ [])

View Source