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