Releases: vapor-community/vapor-ext
Releases · vapor-community/vapor-ext
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
Changes since 0.2.2:
New Model functions:
query(by:, on:, withSoftDeleted:)
to create a query for the model and apply a filter of criteria.findAll(sortBy:, on:, withSoftDeleted:)
to find all models and apply some sorting criteria.find(by:, sortBy:, on:, withSoftDeleted:)
to find models and apply some filters and sorting criteria.findOne(by:, on:, withSoftDeleted:)
to find first model that matches the filters criteria.count(on:, withSoftDeleted:)
to count the number of registers of the model.count(by:, on:, withSoftDeleted:)
to count the number of registers of the model that matches some criteria.
New sort methods:
sort(by:)
to apply some sorting criteria.
0.2.2
0.2.1
0.2.0
Changes since 0.1.4:
- New Request extensions to build
FilterOperator
andQuerySort
from query params (Usefull if you use a Repository system):filter(keyPath:, at parameter:)
to build FilterOperator based in query paramssort(keyPath:, at queryParam:, as parameter:)
to build QuerySort based in query paramssort(keyPath:, at queryParam:, as parameter:, default direction:)
to build QuerySort based in query paramssort(keyPath:, as parameter:)
to build QuerySort based in query paramssort(keyPath:, as parameter:, default direction:)
to build QuerySort based in query params