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

Custom attributes of variable products cannot be queried. #87

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

Custom attributes of variable products cannot be queried. #87

mlipscombe opened this issue Jun 16, 2019 · 0 comments
Assignees
Labels
bug Something isn't working failing fields Issue concerns a failing/broken type field failing query Issue concerns a failing/broken query
Milestone

Comments

@mlipscombe
Copy link

Describe the bug
Retrieving the attributes field of variable products that contain custom attributes returns NULL with the following error for any custom attributes:

{
	"errors": [{
		"debugMessage": "Cannot return null for non-nullable field ProductAttribute.attributeId.",
		"message": "Internal server error",
		"category": "internal",
		"locations": [{
			"line": 39,
			"column": 11
		}],
		"path": ["products", "nodes", 0, "attributes", "nodes", 2, "attributeId"]
	}]
}

To Reproduce
Steps to reproduce the behavior:

  1. Create a product with custom attributes.
  2. Attempt to query the attributes:
{
  productBy(id: "x") {
    attributes {
      nodes {
        attributeId
      }
    }
  }
}

Expected behavior
No error or warning.

@kidunot89 kidunot89 added this to the v0.1.2 milestone Jun 16, 2019
@kidunot89 kidunot89 added bug Something isn't working failing query Issue concerns a failing/broken query labels Jun 16, 2019
@kidunot89 kidunot89 self-assigned this Jun 16, 2019
@kidunot89 kidunot89 added the failing fields Issue concerns a failing/broken type field label Jun 16, 2019
@kidunot89 kidunot89 mentioned this issue Jun 17, 2019
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working failing fields Issue concerns a failing/broken type field failing query Issue concerns a failing/broken query
Projects
None yet
Development

No branches or pull requests

2 participants