View Source Seeker.Search (seeker v0.2.0)
Search implementation for Seeker
.
Summary
Functions
Adds filter and order statements to the ecto query based on
the query(q
) and sort(s
) params.
Functions
@spec call(Ecto.Query.t(), map()) :: Ecto.Query.t()
Adds filter and order statements to the ecto query based on
the query(q
) and sort(s
) params.
Parameters
- scope: Ecto.Query [Ecto query struct]
- params: Map [Plug.Conn params]
Examples
iex> call(scope, params)
%Ecto.Query{}