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

OR & AND operators issue #792

Open
alexsun8899 opened this issue Jun 21, 2022 · 1 comment
Open

OR & AND operators issue #792

alexsun8899 opened this issue Jun 21, 2022 · 1 comment

Comments

@alexsun8899
Copy link

how do I achieve WHERE ({filter} AND {filter} AND ...) OR ({or} AND {or} AND ...) OR ({or} And {or }and …)?

Seems the lib doesn’t support it according to below docs…

If present both or and filter in any amount (one or miltiple each) then both interpreted as a combitation of AND conditions and compared with each other by OR condition, as follows:
WHERE ({filter} AND {filter} AND ...) OR ({or} AND {or} AND ...)
?filter=type||$eq||hero&filter=status||$eq||alive&or=type||$eq||villain&or=status||$eq||dead

@codepushr
Copy link

You can implement more complex queries by using the JSON search option ?s={}, see documentation.

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

No branches or pull requests

2 participants