mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
.vscode
assets
components
config
framework
bigcommerce
commerce
shopify
api
auth
cart
customer
product
types
utils
mutations
associate-customer-with-checkout.ts
checkout-create.ts
checkout-line-item-add.ts
checkout-line-item-remove.ts
checkout-line-item-update.ts
customer-access-token-create.ts
customer-access-token-delete.ts
customer-activate-by-url.ts
customer-activate.ts
customer-create.ts
index.ts
queries
checkout-create.ts
checkout-to-cart.ts
customer-token.ts
get-brands.ts
get-categories.ts
get-checkout-id.ts
get-search-variables.ts
get-sort-variables.ts
handle-account-activation.ts
handle-fetch-response.ts
handle-login.ts
index.ts
normalize.ts
throw-user-errors.ts
wishlist
.env.template
README.md
codegen.json
commerce.config.json
const.ts
fetcher.ts
index.tsx
next.config.js
provider.ts
schema.d.ts
schema.graphql
lib
pages
public
.editorconfig
.env.template
.gitignore
.prettierignore
.prettierrc
README.md
codegen.json
commerce.config.json
global.d.ts
license.md
next-env.d.ts
next.config.js
package.json
postcss.config.js
tailwind.config.js
tsconfig.json
yarn.lock
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
|