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

The CustomerUpdatePayload type represents the result of a customer update operation. It contains an optional customer object with the updated customer information, and a required list of customerUserErrors that may have occurred during the update process. This payload is returned by the customerUpdate mutation.

Example

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

Implements

None