data-api-builder icon indicating copy to clipboard operation
data-api-builder copied to clipboard

Add more OData expression support to $filter

Open yorek opened this issue 3 years ago • 5 comments

Right now, the $filter REST option supports the native OData operations:

http://docs.oasis-open.org/odata/odata/v4.01/cs01/part1-protocol/odata-v4.01-cs01-part1-protocol.html#sec_BuiltinFilterOperations

feedback from some early adopters is emerging in the sense that we should support also some of the native OData query functions:

http://docs.oasis-open.org/odata/odata/v4.01/cs01/part1-protocol/odata-v4.01-cs01-part1-protocol.html#sec_BuiltinQueryFunctions

we should see how many of those can be pushed to the database engine to make sure we can push as much as possible the computation effort to the database

yorek avatar Nov 01 '22 22:11 yorek

Data API builder should output standard OData. It would conform also to Microsoft Graph (supporting expands, navigation properties, grouping, etc...) and there are already standard libraries to interact with it: https://github.com/OData/odata.net

Licantrop0 avatar Dec 21 '23 22:12 Licantrop0

At the very least it should support: contains and ideally should also support startsWith and endsWith

Andy65 avatar May 18 '24 14:05 Andy65

@Andy65, agreed. A partial match would increase the utility of the $filter; otherwise, this would result in overfetching and client-side filtering.

nickmartin1ee7 avatar Feb 12 '25 04:02 nickmartin1ee7

So is this feature being developed? Does anyone know? :)

Vipersoft-01 avatar Apr 28 '25 17:04 Vipersoft-01

Hi, any update on this? This feature would bring a lot of value to the DAB

robxgd avatar Sep 10 '25 08:09 robxgd