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

20 lines
378 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 {
${fragment.CheckoutDetails}
}
}
}
`