mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 13:41:22 +00:00
20 lines
485 B
TypeScript
20 lines
485 B
TypeScript
import { checkoutDetailsFragment } from '../queries/get-checkout-query'
|
|
|
|
const checkoutLineItemAddMutation = /* GraphQL */ `
|
|
mutation($checkoutId: ID!, $lineItems: [CheckoutLineItemInput!]!) {
|
|
checkoutLineItemsAdd(checkoutId: $checkoutId, lineItems: $lineItems) {
|
|
checkoutUserErrors {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
checkout {
|
|
...checkoutDetails
|
|
}
|
|
}
|
|
}
|
|
|
|
${checkoutDetailsFragment}
|
|
`
|
|
export default checkoutLineItemAddMutation
|