Files
commerce/framework/vendure/utils/mutations/set-order-shipping-method-mutation.ts
lytrankieio123 aba0e43b93 🎨 styles: shipping method
:%s
2021-10-20 17:46:03 +07:00

36 lines
494 B
TypeScript

export const setShippingMethodMutation = /* GraphQL */ `
mutation SetShippingMethod($id: ID!) {
setOrderShippingMethod(shippingMethodId: $id) {
...Cart
...ErrorResult
__typename
}
}
fragment Cart on Order {
id
code
state
active
shippingLines {
priceWithTax
shippingMethod {
id
code
name
description
__typename
}
__typename
}
__typename
}
fragment ErrorResult on ErrorResult {
errorCode
message
__typename
}
`