mirror of
https://github.com/vercel/commerce.git
synced 2025-06-20 06:01:21 +00:00
22 lines
503 B
TypeScript
22 lines
503 B
TypeScript
import { checkoutDetailsFragment } from '../queries/get-checkout-query'
|
|
|
|
const checkoutCreateMutation = /* GraphQL */ `
|
|
mutation createCheckout {
|
|
checkoutCreate(input: {
|
|
email: "customer@example.com",
|
|
lines: [{quantity: 1, variantId: "UHJvZHVjdFZhcmlhbnQ6Mjk3"}],
|
|
channel: "default-channel"
|
|
}) {
|
|
errors {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
checkout {
|
|
${checkoutDetailsFragment}
|
|
}
|
|
}
|
|
}
|
|
`
|
|
export default checkoutCreateMutation
|