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
There is an error when you try to update a customer. I'll let the request and response example below: mutation { updateCustomer( input: { firstName: "test" lastName: "test" phoneNumber: "1234567890" emailAddress: "[email protected]" id: "134", title: "sr" } ){ ... on Customer{ id }, ... on ErrorResult{ errorCode, message } } }
Response: {"errors":[{"message":"i.hasOwnProperty is not a function","locations":[{"line":3,"column":17}],"path":["updateCustomer"]}],"data":null}
The text was updated successfully, but these errors were encountered:
Tracked it down to the fact that the graphql-js lib creates input arg objects with null prototypes (see graphql/graphql-js#504). The fix is to replace this line:
There is an error when you try to update a customer. I'll let the request and response example below:
mutation { updateCustomer( input: { firstName: "test" lastName: "test" phoneNumber: "1234567890" emailAddress: "[email protected]" id: "134", title: "sr" } ){ ... on Customer{ id }, ... on ErrorResult{ errorCode, message } } }
Response:
{"errors":[{"message":"i.hasOwnProperty is not a function","locations":[{"line":3,"column":17}],"path":["updateCustomer"]}],"data":null}
The text was updated successfully, but these errors were encountered: