Trash.Test.Repo.get_kept
You're seeing just the function
get_kept
, go back to Trash.Test.Repo module for more information.
Link to this function
get_kept(queryable, id, opts \\ [])
Specs
get_kept(queryable :: Ecto.Queryable.t(), id :: term(), opts :: Keyword.t()) :: Ecto.Schema.t() | nil
Fetches a single kept result where the primary key matches the given id
.
Returns nil
if no result was found.
Examples
iex> MyRepo.get_kept(Post, 1)
%Post{title: "Hello World", discarded_at: nil}