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