node-odata icon indicating copy to clipboard operation
node-odata copied to clipboard

Parenthesis are not supported in filter

Open aiscrim opened this issue 7 years ago • 1 comments

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.

aiscrim avatar Apr 30 '18 16:04 aiscrim

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

zackyang000 avatar May 02 '18 02:05 zackyang000