Closed alanpeabody closed 8 years ago
I am thinking:
@callback handle_query(%Plug.Conn, JaResource.queryable, String.t) :: list(JaResource.record)
Where third argument is :show or :index.
:show
:index
Default implementation would be something like:
def handle_query(_conn, query, :show), do: repo().one(query) def handle_query(_conn, query, :index), do: repo().all(query)
I am thinking:
Where third argument is
:show
or:index
.Default implementation would be something like: