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

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

Open
zackyang000 opened this issue Apr 8, 2016 · 2 comments
Open

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

zackyang000 opened this issue Apr 8, 2016 · 2 comments

Comments

@zackyang000
Copy link
Owner

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.

@sunhaolin
Copy link

请问现在支持 or 查询了吗

@zackyang000
Copy link
Owner Author

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

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