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

Add graphql like filter for complicated filters #49

Open
trenoncourt opened this issue Apr 21, 2018 · 2 comments
Open

Add graphql like filter for complicated filters #49

trenoncourt opened this issue Apr 21, 2018 · 2 comments

Comments

@trenoncourt
Copy link
Owner

Sometimes we can't write some complicated filters with AQ because we have multiple conditions and subconditions :

((id == 1 || id == 2 || id == 3) && color.Contains("blue")) || (quantity >= 5 && quantity < 10)

We need to add a new filter clause (while keeping the old way) to make complicated filters like this :

filter=or(and(id(1,2,3),color(contains=blue),quantity(>=5,<10))
@jsancho
Copy link

jsancho commented Sep 5, 2018

Hi @trenoncourt
I've just come across this issue and it seems to be the very functionality that we are looking for.

I'm wondering if we can already perform a simple logical OR across 2 different fields, or whether this would be part of this enhancement?

e.g. name.Contains("John") OR surname.Contains("Smith")

@trenoncourt
Copy link
Owner Author

hi @jsancho,

Sorry, not yet implemented, but in roadmap !

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