Trash.Query.where_discarded

You're seeing just the function where_discarded, go back to Trash.Query module for more information.
Link to this function

where_discarded(queryable)

Specs

where_discarded(queryable :: Ecto.Queryable.t()) :: Ecto.Queryable.t()

Adds a where clause for returning discarded records.

This adds a where clause equivalent to the SQL expression discarded_at IS NOT NULL which denotes a record that has been discarded.

Examples

iex> Trash.Query.where_discarded(Post) |> Repo.all()
[%Post{title: "Hello World", discarded_at: %DateTime{}, discarded?: nil}]