AbiirSkincare/Hydrogen/web/app/graphql/customer-account/CustomerUpdateMutation.ts

26 lines
559 B
TypeScript

// NOTE: https://shopify.dev/docs/api/customer/latest/mutations/customerUpdate
export const CUSTOMER_UPDATE_MUTATION = `#graphql
mutation customerUpdate(
$customer: CustomerUpdateInput!
$language: LanguageCode
) @inContext(language: $language) {
customerUpdate(input: $customer) {
customer {
firstName
lastName
emailAddress {
emailAddress
}
phoneNumber {
phoneNumber
}
}
userErrors {
code
field
message
}
}
}
` as const;