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

productBy query should support querying by slug #95

Closed
mlipscombe opened this issue Jun 26, 2019 · 0 comments
Closed

productBy query should support querying by slug #95

mlipscombe opened this issue Jun 26, 2019 · 0 comments
Assignees
Labels
design notes Blueprint and notes for coming feature enhancement New feature or request
Milestone

Comments

@mlipscombe
Copy link

Is your feature request related to a problem? Please describe.
When routing, a common use case is to need to find a post object by its slug. Other WPGraphQL queries like postBy and pageBy have a uri input field for this, but productBy does not.

Describe the solution you'd like
Add a uri input field to productBy.

Describe alternatives you've considered
You can use the products query and take just the first result, but it's a kludge.

@kidunot89 kidunot89 mentioned this issue Jul 1, 2019
18 tasks
@kidunot89 kidunot89 added this to the v0.2.0 milestone Jul 1, 2019
@kidunot89 kidunot89 added design notes Blueprint and notes for coming feature enhancement New feature or request labels Jul 1, 2019
@kidunot89 kidunot89 self-assigned this Jul 1, 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 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants