commerce/packages/saleor/utils/mutations/checkout-create.ts
2022-01-14 18:29:24 -05: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}
`