View Source Seeker.Query (seeker v0.2.0)
Query implementation for Seeker
.
Summary
Functions
Adds filters statements to the ecto query based on the q
param.
Returns the q
param key in the connection params.
It tries to find it by using the string or atom key.
Functions
@spec call(Ecto.Query.t(), map()) :: Ecto.Query.t()
Adds filters statements to the ecto query based on the q
param.
Parameters
- scope: Ecto.Query [Ecto query struct]
- filters: Map [Query params map]
Examples
iex> call(scope, filters)
%Ecto.Query{}
Returns the q
param key in the connection params.
It tries to find it by using the string or atom key.
Parameters
- params: Map [Plug Conn params]
Examples
iex> params(%{"q" => %{"name_eq" => "Foo"}})
%{"name_eq" => "Foo"}