Trash.Repo.get_discarded-exclamation-mark
You're seeing just the function
get_discarded-exclamation-mark
, go back to Trash.Repo module for more information.
Link to this function
get_discarded!(queryable, id, opts \\ [], repo)
Specs
get_discarded!( queryable :: Ecto.Queryable.t(), id :: term(), opts :: Keyword.t(), repo :: atom() ) :: Ecto.Schema.t() | nil
Fetches a single discarded result where the primary key matches the given
id
.
Raises Ecto.NoResultsError
if no result was found.
Examples
iex> Trash.Repo.get_discarded!(Post, 1, [], MyApp.Repo)
%Post{}
iex> Trash.Repo.get_discarded!(Post, 2, [], MyApp.Repo)
** (Ecto.NoResultsError)