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

Filter min and null combined #14

Open
priithansen opened this issue May 20, 2015 · 3 comments
Open

Filter min and null combined #14

priithansen opened this issue May 20, 2015 · 3 comments

Comments

@priithansen
Copy link

Stumbled upon a usercase where I would have to make an comparison on a nullable datetime field ended_at-min OR null.

Wonder if there is any way to make that possible?

@priithansen
Copy link
Author

Don't know if it makes sense but maybe having col_name-or-min/max/.. properties supported for parameter grouping would be a good idea.

@marcelgwerder
Copy link
Owner

Not possible at the moment. Currently thinking about or-col_name-min, so adding it as a prefix and leaving the default as AND.
I may rewrite the package though and this may not be added until then. Sorry for the late reply.

@priithansen
Copy link
Author

Thanks for the relply. I thus far worked around this with a dirty request parameter comparison and query fix in controller.

or- prefix sounds like a great idea. Thanks for the package it has been a great help implementing flexible apis while keeping the code dry 👍

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

No branches or pull requests

2 participants