odata_query 2.9.0
odata_query: ^2.9.0 copied to clipboard
OData Query Builder is a simple Dart package for building OData query parameter for your REST API.
2.9.0 #
- Added
RawValueclass: Allows passing unquoted string values to Filter operations. This is essential for GUIDs, identifiers, or other values that should not be wrapped in single quotes in OData queries. - Use case: Some OData backends (especially OData V3 or specific V4 configurations) expect GUIDs without quotes or with typed syntax like
guid'...'. TheRawValueclass enables this functionality. - Example:
Filter.eq('divisionId', RawValue('60965e60-91a5-48cd-b86e-c50587292213'))producesdivisionId eq 60965e60-91a5-48cd-b86e-c50587292213(unquoted).
2.8.0 #
- Enhanced automatic parentheses handling: Improved algorithm for
Filter.andandFilter.orto intelligently add parentheses only where needed for compound expressions. - Improved NOT filter:
Filter.notnow correctly wraps compound expressions in parentheses (e.g.,not (A and B)instead ofnot A and B).
2.7.0 #
- Automatic parentheses for nested filter expressions.
Filter.andandFilter.ornow automatically add grouping parentheses around sub-expressions that contain logical operators (AND/OR) to ensure proper OData operator precedence and avoid logic errors. - This ensures compliance with OData specification requirements for logical operator precedence.
- Complex nested filters now generate correct query strings that return expected results from OData services.
2.6.0 #
- Filters
Filter.andandFilter.ornow accepts lists for more flexible queries. If the list is empty, the filter is omitted.
2.5.0 #
- Added OrderBy chaining:
thenAscandthenDesc.
2.4.0 #
- Added
containsfilter. - Added
startsWithandendsWithfilters. - Added negation
not. - Updated readme and example.
2.3.0 #
- Added
anyandallfilters. - Updated readme and example.
2.2.0 #
- Added
inListandinCollectionfilters. - Updated readme and example.
2.1.0 #
- Added
toEncodedString()and normaltoString()does not encode the query. - Fixed typo in
scr->srcfolder. - Example for nested odata queries.
2.0.0 #
toString()andtoMap()functions instead ofbuild().
1.0.0 #
- Initial release of odata_query package.