@shopify/cli
Version:
A CLI tool to build for the Shopify platform
26 lines (25 loc) • 559 B
text/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;