-
Notifications
You must be signed in to change notification settings - Fork 31
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
Question on notDistinctFrom
operation
#183
Comments
Interesting! I agree that the docs could be clearer; "treating null like an ordinary value" refers only to (Perhaps related, see #58 for the history of the As far as getting the result you're after, could you just replace |
Thank you for the response!
I am realizing now my screenshot isn't all that useful but an example we run into is filtering a list of items that meet any of multiple conditions and/or when null is one of many possible valid search items.
For cases where null is not a valid search value, what we ended up doing is just passing empty arrays rather than null.
However, this doesn’t cover the case of null being valid, for that we would need to pass in a second variable to handle the null case which does complicate the UI code with a lot of filters. Given #58 I understand why the decision was made, probably just a documentation update would be useful here so feel free to close as needed. Thanks again for the work on the plugin! |
Thank you for all the work on this library! We use it quite extensively but have a few questions regarding
null
variables.From the readme
So if the fields are ignored, how is this intended to work with the
distinctFrom
,notDistinctFrom
options? The operators readme in the docs appear to show support for thisThese functions would be extremely useful for us as we often pass in null and would prefer no results, rather than every single item in the table like you see in the table below. Curious if we may be doing something wrong or if there is a way to support this functionality.
The text was updated successfully, but these errors were encountered: