Trash.Repo.one_kept
You're seeing just the function
one_kept
, go back to Trash.Repo module for more information.
Link to this function
one_kept(queryable, opts \\ [], repo)
Specs
one_kept(queryable :: Ecto.Queryable.t(), opts :: Keyword.t(), repo :: atom()) :: Ecto.Schema.t() | nil
Fetches a single kept result from the query.
Returns nil
if no result was found or raises Ecto.MultipleResultsError
if
more than one entry.
Examples
iex> Trash.Repo.one_kept(Post, [], MyApp.Repo)
%Post{title: "Hello World", discarded_at: nil}