1
0
mirror of https://github.com/vercel/commerce.git synced 2025-08-23 09:11:23 +00:00
Files
.vscode
assets
components
config
framework
bigcommerce
commerce
commercejs
kibocommerce
local
ordercloud
saleor
shopify
spree
swell
vendure
api
auth
cart
checkout
customer
product
types
utils
fragments
cart-fragment.ts
search-result-fragment.ts
mutations
queries
array-to-tree.ts
normalize.ts
wishlist
.env.template
README.md
codegen.json
commerce.config.json
fetcher.ts
index.tsx
next.config.js
provider.ts
schema.d.ts
schema.graphql
lib
pages
public
.editorconfig
.env.template
.eslintrc
.gitignore
.prettierignore
.prettierrc
README.md
codegen.bigcommerce.json
codegen.json
commerce.config.json
global.d.ts
license.md
next-env.d.ts
next.config.js
package-lock.json
package.json
postcss.config.js
swell-js.d.ts
tailwind.config.js
tsconfig.json
commerce/framework/vendure/utils/fragments/cart-fragment.ts
2021-06-02 11:46:38 -03:00

45 lines
686 B
TypeScript

export const cartFragment = /* GraphQL */ `
fragment Cart on Order {
id
code
createdAt
totalQuantity
subTotal
subTotalWithTax
total
totalWithTax
currencyCode
customer {
id
}
lines {
id
quantity
linePriceWithTax
discountedLinePriceWithTax
unitPriceWithTax
discountedUnitPriceWithTax
featuredAsset {
id
preview
}
discounts {
description
amount
}
productVariant {
id
name
sku
price
priceWithTax
stockLevel
product {
slug
}
productId
}
}
}
`