commerce/framework/saleor/utils/mutations/checkout-line-remove.ts
2021-06-09 17:02:14 +02:00

18 lines
383 B
TypeScript

import * as fragment from '../fragments'
export const CheckoutLineDelete = /* GraphQL */ `
mutation CheckoutLineDelete($checkoutId: ID!, $lineId: ID!) {
checkoutLineDelete(checkoutId: $checkoutId, lineId: $lineId) {
errors {
code
field
message
}
checkout {
...CheckoutDetails
}
}
}
${fragment.CheckoutDetails}
`