ecto_soft_delete v1.0.0 Ecto.SoftDelete.Query

functions for querying data that is (or is not) soft deleted

Link to this section Summary

Functions

Returns a query that searches only for undeleted items

Link to this section Functions

Link to this function

with_undeleted(query)
with_undeleted(Ecto.Queryable.t()) :: Ecto.Queryable.t()

Returns a query that searches only for undeleted items

query = from(u in User, select: u)
|> with_undeleted

results = Repo.all(query)