Skip to Content

CustomerUpdatePayload

Payload returned by the customerUpdate mutation

Type Definition

type CustomerUpdatePayload { customer: Customer customerUserErrors: [CustomerUserError]! }

Fields

FieldTypeDescription
customerCustomerThe updated customer
customerUserErrors[CustomerUserError]!List of errors that occurred during the operation

Relationships

CustomerUpdatePayload is returned by the customerUpdate mutation and contains a reference to the updated Customer object. The customerUserErrors field provides feedback on any validation or operational errors that occurred during the customer update process.

Example

{ customerUpdate(input: { firstName: "John", lastName: "Doe" }) { customer { id email firstName lastName } customerUserErrors { field message } } }

Implements

None