mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 21:51:21 +00:00
* Changed to query page by id * Fixed page query, Changed use-search GraphQl query * Update use-search.tsx * remove unused util * Changed cookie expiration * Update tsconfig.json * Fix add to cart & prepare for user activation * Update helpers.ts * Update helpers.ts * Changes, fix Shopify GraphQL deprecations * Update checkout-to-cart.ts * Default to BigCommerce * Update index.ts * Fixed types
18 lines
353 B
TypeScript
18 lines
353 B
TypeScript
import { checkoutDetailsFragment } from '../queries/get-checkout-query'
|
|
|
|
const checkoutCreateMutation = /* GraphQL */ `
|
|
mutation {
|
|
checkoutCreate(input: {}) {
|
|
checkoutUserErrors {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
checkout {
|
|
${checkoutDetailsFragment}
|
|
}
|
|
}
|
|
}
|
|
`
|
|
export default checkoutCreateMutation
|