Trash.Test.Repo.one_discarded
You're seeing just the function
one_discarded
, go back to Trash.Test.Repo module for more information.
Link to this function
one_discarded(queryable, opts \\ [])
Specs
one_discarded(queryable :: Ecto.Queryable.t(), 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.one_discarded(Post)
%Post{title: "Hello World", discarded_at: %DateTime{}}