Closed karaarda closed 2 years ago
Moved this from the API repo to the example storefront repo. The API docs are correct in that notes
is always an array if you request it. The problem is that the storefront query does not request notes
.
The fix is to add notes { }
with some notes fields in the OrderCommon
fragment definition in example-storefront codebase.
Prerequisites
Issue Description
Order item doesn't contain "notes" property.
Steps to Reproduce
Please provide starting context, i.e. logged in as a user, configure a particular payment method.
Possible Solution
Return empty array when notes doesn't exist as written in the documentation
According to the schema.graphql:
"Notes about the order. This will always return an array but it may be empty" notes: [OrderNote]!
Actual data returned: