Ecto.SoftDelete.Query (ecto_soft_delete v2.0.3)
functions for querying data that is (or is not) soft deleted
Summary
Functions
Returns a query that searches only for undeleted items
Functions
Link to this function
with_undeleted(query)
@spec 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)