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

Filters: "in" operator #168

Open
trshiv opened this issue Dec 18, 2018 · 0 comments
Open

Filters: "in" operator #168

trshiv opened this issue Dec 18, 2018 · 0 comments

Comments

@trshiv
Copy link
Contributor

@trshiv trshiv commented Dec 18, 2018

Frequently, there are filter expressions where the same attribute is compared with multiple values like -

$filter=categoryId eq 'cat1000' or categoryId eq 'cat1001' or categoryId eq 'cat1002'

It is very desirable to write the above as

$filter=categoryId in ['cat1000', 'cat1001', 'cat1002']

This is less verbose and much better for human readability and visual debugging, especially when combining multiple such filter conditions. Eg. $filter=categoryId in ['cat1000', 'cat1001', 'cat1002'] and productId not in ['201', '210'].

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.