forked from crowetic/commerce
.vscode
assets
components
config
docs
framework
bigcommerce
commerce
shopify
api
auth
cart
common
customer
product
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-create.ts
index.ts
queries
customer-token.ts
get-categories.ts
get-checkout-id.ts
get-search-variables.ts
get-sort-variables.ts
get-vendors.ts
handle-fetch-response.ts
handle-login.ts
index.ts
normalize.ts
storage.ts
wishlist
.env.template
README.md
commerce.config.json
const.ts
fetcher.ts
index.tsx
next.config.js
provider.ts
schema.d.ts
schema.graphql
types.ts
swell
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
20 lines
454 B
TypeScript
20 lines
454 B
TypeScript
import { checkoutDetailsFragment } from '../queries/get-checkout-query'
|
|
|
|
const checkoutLineItemRemoveMutation = /* GraphQL */ `
|
|
mutation($checkoutId: ID!, $lineItemIds: [ID!]!) {
|
|
checkoutLineItemsRemove(
|
|
checkoutId: $checkoutId
|
|
lineItemIds: $lineItemIds
|
|
) {
|
|
userErrors {
|
|
message
|
|
field
|
|
}
|
|
checkout {
|
|
${checkoutDetailsFragment}
|
|
}
|
|
}
|
|
}
|
|
`
|
|
export default checkoutLineItemRemoveMutation
|