mirror of
https://github.com/vercel/commerce.git
synced 2025-06-20 14:11:20 +00:00
17 lines
411 B
TypeScript
17 lines
411 B
TypeScript
import { checkoutDetailsFragment } from '../queries/get-checkout-query'
|
|
|
|
export const checkoutLineAdd = /* GraphQL */ `
|
|
mutation checkoutLineItemAdd($checkoutId: ID!, $lineItems: [CheckoutLineInput!]!) {
|
|
checkoutLinesAdd(checkoutId: $checkoutId, lines: $lineItems) {
|
|
errors {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
checkout {
|
|
${checkoutDetailsFragment}
|
|
}
|
|
}
|
|
}
|
|
`
|