Created
August 8, 2019 06:07
-
-
Save vemuruadi/1476d61a8aa396d8ec5b7f0320b32199 to your computer and use it in GitHub Desktop.
Reaction Commerce Storefront Catalog Query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Query Variables
{
"shopId": "cmVhY3Rpb24vc2hvcDpKOEJocTN1VHRkZ3daeDNyeg=="
}