Add delivery addresses to profile, cart, and orders
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
mutation CreateMyDeliveryAddress($input: CreateMyDeliveryAddressInput!) {
|
||||
createMyDeliveryAddress(input: $input) {
|
||||
id
|
||||
label
|
||||
address
|
||||
unrestrictedValue
|
||||
fiasId
|
||||
isDefault
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation DeleteMyDeliveryAddress($addressId: ID!) {
|
||||
deleteMyDeliveryAddress(addressId: $addressId)
|
||||
}
|
||||
11
graphql/operations/profile/my-delivery-addresses.graphql
Normal file
11
graphql/operations/profile/my-delivery-addresses.graphql
Normal file
@@ -0,0 +1,11 @@
|
||||
query MyDeliveryAddresses {
|
||||
myDeliveryAddresses {
|
||||
id
|
||||
label
|
||||
address
|
||||
unrestrictedValue
|
||||
fiasId
|
||||
isDefault
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
mutation SetMyDefaultDeliveryAddress($addressId: ID!) {
|
||||
setMyDefaultDeliveryAddress(addressId: $addressId) {
|
||||
id
|
||||
label
|
||||
address
|
||||
unrestrictedValue
|
||||
fiasId
|
||||
isDefault
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user