feat: get-edit-user-info

This commit is contained in:
Quangnhankie
2021-10-06 12:10:04 +07:00
parent a2cec5788e
commit dcfa1a1ece
17 changed files with 380 additions and 96 deletions

View File

@@ -0,0 +1,14 @@
export const updateCustomerAddress = /* GraphQL */ `
mutation updateCustomerAddress($input: UpdateAddressInput!){
updateCustomerAddress(input: $input){
__typename
...on Address{
id
streetLine1
city
postalCode
province
}
}
}
`

View File

@@ -0,0 +1,13 @@
export const updateCustomer = /* GraphQL */ `
mutation updateCustomer($input: UpdateCustomerInput!){
updateCustomer(input:$input){
__typename
...on Customer{
id
firstName
lastName
phoneNumber
}
}
}
`

View File

@@ -5,6 +5,13 @@ export const activeCustomerQuery = /* GraphQL */ `
firstName
lastName
emailAddress
phoneNumber
addresses{
streetLine1
city
province
postalCode
}
}
}
`

View File

@@ -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
}
}
}