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 AND and OR statement to where clause. #120

Closed
ranaaterning opened this issue Aug 5, 2019 · 0 comments
Closed

Add AND and OR statement to where clause. #120

ranaaterning opened this issue Aug 5, 2019 · 0 comments
Labels
design notes Blueprint and notes for coming feature
Milestone

Comments

@ranaaterning
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When creating a product filter for example, you will often want to filter the same field more than once. Then it would be great to have the AND added to the where clause. The same goes for the OR.

Describe the solution you'd like
This type of solution would be great:
where: {OR: [ {categoryName: "All"}, {categoryName: "pants" } ] }

Describe alternatives you've considered
Perhaps enabling support for the product type when using the tax Query plugin.

@kidunot89 kidunot89 added this to the v0.2.1 milestone Aug 5, 2019
@kidunot89 kidunot89 added the design notes Blueprint and notes for coming feature label Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design notes Blueprint and notes for coming feature
Projects
None yet
Development

No branches or pull requests

2 participants