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

Cannot query "collection & Product.facetValues" at the same time #449

Closed
chladog opened this issue Aug 30, 2020 · 0 comments
Closed

Cannot query "collection & Product.facetValues" at the same time #449

chladog opened this issue Aug 30, 2020 · 0 comments
Assignees
Labels
type: bug 🐛 Something isn't working
Milestone

Comments

@chladog
Copy link
Contributor

chladog commented Aug 30, 2020

Describe the bug
When trying to query collection by id or slug and retrieving {{collectionData}}.productVariants.product.facetValues.{{value}} we get error "Cannot return null for non-nullable field Product.facetValues."

To Reproduce
Steps to reproduce the behavior:
https://demo.vendure.io/shop-api and run query:
query { collection(slug: "electronics") { productVariants { items { product { facetValues { name code } } } } } }
Expected behavior
We are able to query data with facetValues included.

Environment:
I encountered this problem with Postgres DB, dunno if bug occurs with other DB...

@chladog chladog added the type: bug 🐛 Something isn't working label Aug 30, 2020
@michaelbromley michaelbromley added this to the v0.15.1 milestone Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants