mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
22 lines
520 B
TypeScript
22 lines
520 B
TypeScript
import { checkoutDetailsFragment } from '../queries/get-checkout-query'
|
|
|
|
const checkoutLineItemRemoveMutation = /* GraphQL */ `
|
|
mutation checkoutLineItemRemove($checkoutId: ID!, $lineItemIds: [ID!]!) {
|
|
checkoutLineItemsRemove(
|
|
checkoutId: $checkoutId
|
|
lineItemIds: $lineItemIds
|
|
) {
|
|
checkoutUserErrors {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
checkout {
|
|
...checkoutDetails
|
|
}
|
|
}
|
|
}
|
|
${checkoutDetailsFragment}
|
|
`
|
|
export default checkoutLineItemRemoveMutation
|