CustomerCreatePayload
Payload returned by the customerCreate mutation
Type Definition
type CustomerCreatePayload {
customer: Customer
customerAccessToken: CustomerAccessToken
customerUserErrors: [CustomerUserError]!
}Fields
Relationships
CustomerCreatePayload is returned by the customerCreate mutation. It contains a reference to the newly created Customer object, an associated CustomerAccessToken for authentication, and a list of CustomerUserError objects that describe any validation or processing errors that occurred during customer creation.
Example
mutation {
customerCreate(input: {
email: "customer@example.com"
password: "securepassword123"
firstName: "John"
lastName: "Doe"
}) {
customer {
id
email
firstName
lastName
}
customerAccessToken {
accessToken
expiresAt
}
customerUserErrors {
field
message
}
}
}Implements
None