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

Logical operators 'and' and 'or' is incorrect in $filter.

Open zackyang000 opened this issue 10 years ago • 2 comments

1. 'or' is not work

http://localhost:3000/book?$filter=price gt 30 or price lt 30

is same as

http://localhost:3000/book?$filter=price gt 30 and price lt 30

This is a mistake. It's should return something when use 'or' to query.

2. 'and' is not correct when $filter same field

http://localhost:3000/book?$filter=price eq 44.95 and price eq 36.95

This query will return 2 result both include 44.95 and 36.95.

zackyang000 avatar Apr 08 '16 06:04 zackyang000

请问现在支持 or 查询了吗

sunhaolin avatar Jan 27 '18 05:01 sunhaolin

@sunhaolin 感谢关注,目前仍然没有支持 T_T

zackyang000 avatar Jan 29 '18 03:01 zackyang000