CustomerCreatePayload
Payload returned by the customerCreate mutation
Type Definition
type CustomerCreatePayload {
customer: Customer
customerAccessToken: CustomerAccessToken
customerUserErrors: [CustomerUserError]!
}Fields
Relationships
CustomerCreatePayload is the return type of the customerCreate mutation. It contains references to the Customer object created during the operation, along with a CustomerAccessToken that can be used for authenticated requests on behalf of the newly created customer. Any errors encountered during customer creation are provided in the customerUserErrors field.
Example
mutation {
customerCreate(input: {email: "customer@example.com", password: "password123"}) {
customer {
id
email
firstName
lastName
}
customerAccessToken {
accessToken
expiresAt
}
customerUserErrors {
field
message
}
}
}Implements
This type does not implement any interfaces.