mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
23 lines
535 B
TypeScript
23 lines
535 B
TypeScript
import { cartFragment } from '../../utils/fragments/cart-fragment'
|
|
|
|
export const setOrderShippingMethod = /* GraphQL */ `
|
|
mutation setOrderShippingMethod($shippingMethodId: ID!) {
|
|
setOrderShippingMethod(shippingMethodId: $shippingMethodId) {
|
|
...Cart
|
|
... on OrderModificationError {
|
|
errorCode
|
|
message
|
|
}
|
|
... on IneligibleShippingMethodError {
|
|
errorCode
|
|
message
|
|
}
|
|
... on NoActiveOrderError {
|
|
errorCode
|
|
message
|
|
}
|
|
}
|
|
}
|
|
${cartFragment}
|
|
`
|