mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
33 lines
555 B
TypeScript
33 lines
555 B
TypeScript
import { productDetails } from '../fragments/productDetails'
|
|
export const getCartQuery = /* GraphQL */`
|
|
query cart {
|
|
currentCart {
|
|
id
|
|
userId
|
|
orderDiscounts {
|
|
impact
|
|
discount {
|
|
id
|
|
name
|
|
}
|
|
couponCode
|
|
}
|
|
subtotal
|
|
shippingTotal
|
|
total
|
|
items {
|
|
id
|
|
subtotal
|
|
unitPrice{
|
|
extendedAmount
|
|
}
|
|
product {
|
|
...productDetails
|
|
}
|
|
quantity
|
|
}
|
|
}
|
|
}
|
|
${productDetails}
|
|
`
|