[Issue] [Graphql] applied_to must exist on an orderItem #39782
Labels
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
This issue is automatically created based on existing pull request: #39772: [Graphql] applied_to must exist on an orderItem
Description (*)
Due to
magento2/app/code/Magento/QuoteGraphQl/etc/schema.graphqls
Line 443 in 9e7230b
Because this is missing errors will be thrown once the applied_to is missing. There are 2 ways to fix this. Remove the not null requirement on applied_to or adding the applied_to on the order item as well.
I believe adding it to the order item could result in more consistent frontend as we keep the data between cart item and order item te same.
Manual testing scenarios (*)
Create/fetch an order using Graphql that has orderitems with discounts, make sure to get the discounts and applied_to (as defined by the graphql schema).

You will see the following error
Contribution checklist (*)
The text was updated successfully, but these errors were encountered: