Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parenthesis are not supported in filter #92

Open
aiscrim opened this issue Apr 30, 2018 · 1 comment
Open

Parenthesis are not supported in filter #92

aiscrim opened this issue Apr 30, 2018 · 1 comment

Comments

@aiscrim
Copy link

aiscrim commented Apr 30, 2018

If you try to use parenthesis in the $filter, it will just return syntax error.
For example, the following query works:

http://localhost:3000/aircraft?$filter=role eq 'transport' and manufacturer eq 'xxx'

while this one doesn't:

http://localhost:3000/aircraft?$filter=(role eq 'transport' and manufacturer eq 'xxx')

and it just returns: "Syntax error at ''xxx')'.

This problem makes it impossible to define complex filters and, more importantly, it limits the usage of client-side libraries that consume OData services (like Kendo UI for Angular), since they often generate filters with parenthesis.

@zackyang000
Copy link
Owner

Sorry, only some simple queries are supported in current version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants