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

Can't query products slug on a given collection #2264

Closed
nonlinearcom opened this issue Jul 3, 2023 · 0 comments
Closed

Can't query products slug on a given collection #2264

nonlinearcom opened this issue Jul 3, 2023 · 0 comments
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@nonlinearcom
Copy link

nonlinearcom commented Jul 3, 2023

Describe the bug
on this repoduction setup it's not possible to get a list of products-slug from a given collection:

{
	collection(slug: "collection1") {
		id
		productVariants {
			items {
				product {
					id
 					slug
				}
			}
		}
	}
}

we get this error: Cannot convert undefined or null to object but if we comment the slug bit, thequery works normally

To Reproduce
Steps to reproduce the behavior:

  1. Clean Install vendure 2.0.2 without dummy data.
  2. Add dummy products, facets, colletcions and channels.
  3. Add custom fields (here is where the query gets broken)

https://github.com/nonlinearcom/vendure-reproduction

Expected behavior
if we query a collection, we should be able to get a list of products with their slugs :)

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