Trash.Test.Repo.get_kept_by-exclamation-mark

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

get_kept_by!(queryable, clauses, opts \\ [])

Specs

get_kept_by!(
  queryable :: Ecto.Queryable.t(),
  clauses :: Keyword.t() | map(),
  opts :: Keyword.t()
) :: Ecto.Schema.t()

Fetches a single kept result from the query.

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

Examples

iex> MyRepo.get_kept_by!(Post, title: "Hello World")
%Post{title: "Hello World", discarded_at: %DateTime{}}

iex> MyRepo.get_kept_by!(Post, title: "Not Written")
** (Ecto.NoResultsError)