Skip to content

Instantly share code, notes, and snippets.

@vemuruadi
Created August 8, 2019 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vemuruadi/1476d61a8aa396d8ec5b7f0320b32199 to your computer and use it in GitHub Desktop.
Save vemuruadi/1476d61a8aa396d8ec5b7f0320b32199 to your computer and use it in GitHub Desktop.
Reaction Commerce Storefront Catalog Query
query catalogItemsQuery($shopId: ID!, $tagIds: [ID], $first: ConnectionLimitInt, $last: ConnectionLimitInt, $before: ConnectionCursor, $after: ConnectionCursor, $sortBy: CatalogItemSortByField, $sortByPriceCurrencyCode: String, $sortOrder: SortOrder) {
catalogItems(shopIds: [$shopId], tagIds: $tagIds, first: $first, last: $last, before: $before, after: $after, sortBy: $sortBy, sortByPriceCurrencyCode: $sortByPriceCurrencyCode, sortOrder: $sortOrder) {
totalCount
pageInfo {
endCursor
startCursor
hasNextPage
hasPreviousPage
__typename
}
edges {
cursor
node {
_id
... on CatalogItemProduct {
product {
_id
title
slug
description
vendor
isLowQuantity
isSoldOut
isBackorder
metafields {
description
key
namespace
scope
value
valueType
__typename
}
shop {
currency {
code
__typename
}
__typename
}
pricing {
compareAtPrice {
displayAmount
__typename
}
currency {
code
__typename
}
displayPrice
minPrice
maxPrice
__typename
}
primaryImage {
URLs {
thumbnail
small
medium
large
__typename
}
__typename
}
__typename
}
__typename
}
__typename
}
__typename
}
__typename
}
}
@vemuruadi
Copy link
Author

Query Variables
{
"shopId": "cmVhY3Rpb24vc2hvcDpKOEJocTN1VHRkZ3daeDNyeg=="
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment