-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
customFields null on graphQl query collection #2171
Comments
I have the same problem: my custom fields are exposed for the products correctly with the |
I think the problem here (in both cases) is that the custom fields are being defined on the For example, to get the custom fields of the query {
activeOrder {
id
lines {
productVariant {
product {
customFields {
myCustomField
}
}
}
}
}
} |
Hi @michaelbromley , Thanks for your quick feedback. Hum, I guess my query already was correct, see, if I query the product directly by ID, I get its On the other hand, If I have the product in my order lines with Am I missing something? |
@daviddarx ok yeah your queries look correct so this seems like a potential bug then. I will investigate at the next opportunity. Alternatively let's try putting a bounty on it to incentivize others to have a go at solving it: /bounty $40 |
💎 $40 bounty • VendureSteps to solve:
Thank you for contributing to vendure-ecommerce/vendure! Add a bounty • Share on socials
|
@michaelbromley Great thanks! |
/attempt #2171 Options |
💡 @oliverqx submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
Describe the bug
customFields is null on graphQl query collection
Product with customFields:
![image](https://user-images.githubusercontent.com/53661314/236754856-0fab1ba8-92c6-4d40-9036-df6dbcb92363.png)
Query:
![image](https://user-images.githubusercontent.com/53661314/236754939-70542a0c-2218-4726-bc3b-32dc7796779a.png)
Response:
![image](https://user-images.githubusercontent.com/53661314/236755072-21891ed2-6be4-4443-aff1-40fc4b4b7e48.png)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
List of customFields as JSON
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: