mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
saleor: initial cart integration
This commit is contained in:
@@ -2,16 +2,19 @@ import { checkoutDetailsFragment } from '../queries/get-checkout-query'
|
||||
|
||||
const checkoutCreateMutation = /* GraphQL */ `
|
||||
mutation createCheckout {
|
||||
checkoutCreate(input: {}) {
|
||||
checkoutUserErrors {
|
||||
checkoutCreate(input: {
|
||||
email: "customer@example.com",
|
||||
lines: [{quantity: 1, variantId: "UHJvZHVjdFZhcmlhbnQ6Mjk3"}],
|
||||
channel: "default-channel"
|
||||
}) {
|
||||
errors {
|
||||
code
|
||||
field
|
||||
message
|
||||
}
|
||||
# Breaks GraphQL Codegen
|
||||
# checkout {
|
||||
# ${checkoutDetailsFragment}
|
||||
# }
|
||||
checkout {
|
||||
${checkoutDetailsFragment}
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
Reference in New Issue
Block a user