Trash.Test.Repo.get_discarded

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

get_discarded(queryable, id, opts \\ [])

Specs

get_discarded(
  queryable :: Ecto.Queryable.t(),
  id :: term(),
  opts :: Keyword.t()
) :: Ecto.Schema.t() | nil

Fetches a single discarded result where the primary key matches the given id.

Returns nil if no result was found.

Examples

iex> MyRepo.get_discarded(Post)
%Post{
  title: "Hello World",
  discarded_at: %DateTime{},
  discarded?: nil
}