You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The (deprecated) setPaymentMethodAndPlaceOrder mutation is broken: [object] (GraphQL\\Error\\Error(code: 0): Cannot return null for non-nullable field \"Order.cart_id\".
This field is not returned by \Magento\QuoteGraphQl\Model\Resolver\SetPaymentAndPlaceOrder.
Fix
You either need to add your own resolver (which could simply be using the input parameters) or use a plugin on the existing (Magento Core) resolver:
Thank you for introducing this temporary fix to the issue described on #2754. We have decided not to implement it to the code base (as this mutation has been deprecated and our documentation does not recommend using it) but will keep the issue open for anyone who needs it.
The idea is solving the issue in an abstract way with our internal investigation. We will keep you updated.
Description
The (deprecated)
setPaymentMethodAndPlaceOrder
mutation is broken:[object] (GraphQL\\Error\\Error(code: 0): Cannot return null for non-nullable field \"Order.cart_id\".
This is caused by:
adyen-magento2/etc/schema.graphqls
Line 57 in 4b98628
This field is not returned by
\Magento\QuoteGraphQl\Model\Resolver\SetPaymentAndPlaceOrder
.Fix
You either need to add your own resolver (which could simply be using the input parameters) or use a plugin on the existing (Magento Core) resolver:
etc/graphql/di.xml
This enables users to use the (deprecated)
setPaymentMethodAndPlaceOrder
mutation which is a temporary fix for issue #2754The text was updated successfully, but these errors were encountered: