Trash.Test.Repo.get_discarded_by

You're seeing just the function get_discarded_by, 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() | nil

Fetches a single discarded result from the query.

Returns nil if no result was found or raises if more than one entry.

Examples

iex> MyRepo.get_discarded_by(Post, [title: "Hello World"])
%Post{title: "Hello World", discarded_at: %DateTime{}}