Features
✨ Add support for pagination by adding the page
parameter to get()
CRUD methods
✨ Add support for resource filtering, by adding Pydantic Filter models and extending CRUD methods to accept an additional parameter containing the filter method
Breaking Changes
🔥 Both the get()
and get_deleted()
method now return a tuple instead of a simple list of resources. The tuple contains the list of resources as before as first element and the total number of resources (without pagination applied) as second return statement.
You'll need to change usage of those methods, either by making use of the additional return value or by changing the call:
# BEFORE
members = ev.member.get()
# NEW (preferred)
members, total_count = ev.member.get()
# NEW, if return value not needed
members = ev.member.get()[0]
# Alternative, quite common but discouraged:
members, _ = ev.member.get()