mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
20 lines
428 B
TypeScript
20 lines
428 B
TypeScript
import { checkoutDetailsFragment } from '../queries/get-checkout-query'
|
|
|
|
const checkoutCreateMutation = /* GraphQL */ `
|
|
mutation checkoutCreate($input: CheckoutCreateInput = {}) {
|
|
checkoutCreate(input: $input) {
|
|
checkoutUserErrors {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
checkout {
|
|
...checkoutDetails
|
|
}
|
|
}
|
|
}
|
|
|
|
${checkoutDetailsFragment}
|
|
`
|
|
export default checkoutCreateMutation
|