mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 11:41:23 +00:00
feat: get-edit-user-info
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
export const updateCustomerAddress = /* GraphQL */ `
|
||||
mutation updateCustomerAddress($input: UpdateAddressInput!){
|
||||
updateCustomerAddress(input: $input){
|
||||
__typename
|
||||
...on Address{
|
||||
id
|
||||
streetLine1
|
||||
city
|
||||
postalCode
|
||||
province
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
@@ -0,0 +1,13 @@
|
||||
export const updateCustomer = /* GraphQL */ `
|
||||
mutation updateCustomer($input: UpdateCustomerInput!){
|
||||
updateCustomer(input:$input){
|
||||
__typename
|
||||
...on Customer{
|
||||
id
|
||||
firstName
|
||||
lastName
|
||||
phoneNumber
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
@@ -5,6 +5,13 @@ export const activeCustomerQuery = /* GraphQL */ `
|
||||
firstName
|
||||
lastName
|
||||
emailAddress
|
||||
phoneNumber
|
||||
addresses{
|
||||
streetLine1
|
||||
city
|
||||
province
|
||||
postalCode
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
@@ -1,14 +1,15 @@
|
||||
export const userInfoQuery = /* GraphQL */ `
|
||||
query activeCustomer{
|
||||
activeCustomer{
|
||||
lastName
|
||||
firstName
|
||||
emailAddress
|
||||
phoneNumber
|
||||
addresses{
|
||||
name:fullName
|
||||
address:streetLine1
|
||||
streetLine1
|
||||
city
|
||||
state:province
|
||||
province
|
||||
postalCode
|
||||
phoneNumber
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user