filterator 0.1.0-beta.1
filterator: ^0.1.0-beta.1 copied to clipboard
API Query Builder for Dart, A powerful and flexible library for constructing structured API queries with support for filtering, ordering, paging, and seamless conversion to API-specific formats.
0.1.0-beta.1 Initial Release #
🚀 Features #
-
Dynamic Query Interface (
ApiQuery) Introduced a flexible, type-safe API query builder interface supporting:- Simple filters with
where()andwheres()helpers - Nested filtering using logical groups:
and()/or() - Full control over filtering conditions, ordering, paging, and selection
- Simple filters with
-
Standardized Query Filters (
ApiQueryFilter)- Supports operations like:
eq,neq,lt,gt,contains,inList, etc. - Provides both short-form and verbose syntax for maximum flexibility
- Supports operations like:
-
Pagination Support (
paginate())- Easily define
limitandoffsetfor paginated requests
- Easily define
-
Field Selection (
include()/exclude())- Explicitly include or exclude response fields for lightweight API calls
-
Sorting (
ordering())- Order results by any field with direction control (ascending or descending)
-
SupyConverter
-
Converts
ApiQueryobjects to:- Query parameters (
toQueryParameters()) - JSON body payloads (
toRequestBody()) - Nested map structures (
body())
- Query parameters (
-
Ready to integrate with Supy-style or similar RESTful backends
-
Encoder toggle to support different formats (e.g., REST, GraphQL, OData)
-
-
Extensibility
- Designed to be extensible for future formats and standards (GraphQL, OData, etc.)
- Easily plug in other converters following the same interface