-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add HAS operator #6
base: master
Are you sure you want to change the base?
Conversation
d5f07a4
to
bea224d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but have not tested. Thanks for doing this so quickly.
Edit: I May have to publish as a new version, as installing from github doesn't work for this package. I'll do some testing before I publish a new version. |
@@ -168,4 +168,5 @@ A list of all operators are as follows: | |||
| `lte` | less than or equal to | | |||
| `startswith` | starts with | | |||
| `endswith` | ends with | | |||
| `has` | array has any element | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
@TomAlperin reached out to me regarding an Array operator. Let me know if this PR addresses your needs @TomAlperin
Changes
Added the
has
operator. You can use the operator like this:?filter=role__has:role1|role2
This reads in English as: the role array has either
role1
ORrole2