EctoExtras.Repo behaviour (ecto_extras v0.1.2) View Source

Helper functions for Ecto.Repo

Link to this section Summary

Callbacks

Returns first object from the query result. By default ordered by the primary key.

Link to this section Callbacks

Specs

first(query :: Ecto.Queryable.t(), column :: :id) :: Ecto.Schema.t() | nil

Returns first object from the query result. By default ordered by the primary key.