Trash.Test.Repo.get_discarded_by-exclamation-mark
You're seeing just the function
get_discarded_by-exclamation-mark
, go back to Trash.Test.Repo module for more information.
Link to this function
get_discarded_by!(queryable, clauses, opts \\ [])
Specs
get_discarded_by!( queryable :: Ecto.Queryable.t(), clauses :: Keyword.t() | map(), opts :: Keyword.t() ) :: Ecto.Schema.t()
Fetches a single discarded result from the query.
Raises if more than one result. Raises Ecto.NoResultsError
if no result
was found.
Examples
iex> MyRepo.get_discarded_by!(Post, [title: "Hello World"])
%Post{title: "Hello World", discarded_at: %DateTime{}}
iex> MyRepo.get_discarded_by!(Post, [title: "Unwritten"])
** (Ecto.NoResultsError)