mirror of
https://github.com/vercel/commerce.git
synced 2025-08-06 08:51:25 +00:00
.vscode
assets
components
config
framework
bigcommerce
commerce
local
reactioncommerce
api
auth
cart
common
customer
product
utils
mutations
queries
account-cart-by-account-id.ts
catalog-items-query.ts
get-all-collections-query.ts
get-all-pages-query.ts
get-all-product-vendors-query.ts
get-all-products-paths-query.ts
get-anonymous-cart.ts
get-cart-query.ts
get-collection-products-query.ts
get-page-query.ts
get-product-query.ts
get-viewer-id-query.ts
index.ts
viewer-query.ts
customer-token.ts
get-anonymous-cart-token.ts
get-cart-id.ts
handle-fetch-response.ts
index.ts
normalize.ts
wishlist
.env.template
README.md
codegen.json
commerce.config.json
const.ts
fetcher.ts
index.tsx
next.config.js
provider.ts
schema.d.ts
schema.graphql
types.ts
saleor
shopify
swell
vendure
lib
pages
public
.editorconfig
.env.template
.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.json
postcss.config.js
swell-js.d.ts
tailwind.config.js
tsconfig.json
yarn.lock
12 lines
343 B
TypeScript
12 lines
343 B
TypeScript
import { cartQueryFragment } from './get-cart-query'
|
|
|
|
export const getAnomymousCart = `
|
|
query anonymousCartByCartIdQuery($cartId: ID!, $cartToken: String!, $itemsAfterCursor: ConnectionCursor) {
|
|
cart: anonymousCartByCartId(cartId: $cartId, cartToken: $cartToken) {
|
|
${cartQueryFragment}
|
|
}
|
|
}
|
|
`
|
|
|
|
export default getAnomymousCart
|