Trash.Repo.one_discarded-exclamation-mark

You're seeing just the function one_discarded-exclamation-mark, go back to Trash.Repo module for more information.
Link to this function

one_discarded!(queryable, opts \\ [], repo)

Specs

one_discarded!(
  queryable :: Ecto.Queryable.t(),
  opts :: Keyword.t(),
  repo :: atom()
) :: Ecto.Schema.t()

Fetches a single discarded result from the query.

Raises Ecto.MultipleResultsError if more than one entry. Raises Ecto.NoResultsError if no result was found.

Examples

iex> Trash.Repo.one_discarded!(Post, [], MyApp.Repo)
%Post{title: "Hello World", discarded_at: %DateTime{}}

iex> Trash.Repo.one_discarded!(Post, [], MyApp.Repo)
** (Ecto.NoResultsError)