Trash.Query.where_kept
You're seeing just the function
where_kept
, go back to Trash.Query module for more information.
Link to this function
where_kept(queryable)
Specs
where_kept(queryable :: Ecto.Queryable.t()) :: Ecto.Queryable.t()
Adds a where clause for returning kept records.
This adds a where clause equivalent to the SQL expression discarded_at IS NULL
which denotes a record that has been kept.
Examples
iex> Trash.Query.where_kept(Post) |> Repo.all()
[%Post{title: "Hello World", discarded_at: nil, discarded?: nil}]