commerce/framework/saleor/utils/mutations/checkout-create.ts
2021-06-09 17:02:14 +02:00

18 lines
378 B
TypeScript

import * as fragment from '../fragments'
export const CheckoutCreate = /* GraphQL */ `
mutation CheckoutCreate {
checkoutCreate(input: { email: "customer@example.com", lines: [], channel: "default-channel" }) {
errors {
code
field
message
}
checkout {
...CheckoutDetails
}
}
}
${fragment.CheckoutDetails}
`