mirror of
https://github.com/vercel/commerce.git
synced 2025-07-27 04:01:23 +00:00
Implement Shopify Provider
This commit is contained in:
40
framework/shopify/utils/queries/get-checkout-query.ts
Normal file
40
framework/shopify/utils/queries/get-checkout-query.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
export const checkoutDetailsFragment = /* GraphQL */ `
|
||||
id
|
||||
webUrl
|
||||
subtotalPrice
|
||||
totalTax
|
||||
totalPrice
|
||||
currencyCode
|
||||
lineItems(first: 250) {
|
||||
pageInfo {
|
||||
hasNextPage
|
||||
hasPreviousPage
|
||||
}
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
title
|
||||
variant {
|
||||
id
|
||||
title
|
||||
image {
|
||||
src
|
||||
}
|
||||
price
|
||||
}
|
||||
quantity
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
const getCheckoutQuery = /* GraphQL */ `
|
||||
query($checkoutId: ID!) {
|
||||
node(id: $checkoutId) {
|
||||
... on Checkout {
|
||||
${checkoutDetailsFragment}
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
export default getCheckoutQuery
|
Reference in New Issue
Block a user