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