UNPKG

shopify-storefront

Version:
73 lines 1.37 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const graphql_1 = require("../../../graphql"); const queryProduct = (0, graphql_1.buildQuery)('products', { first: 'Int', last: 'Int', query: 'String', reverse: 'Boolean', sortKey: 'ProductSortKeys', }, [ ` nodes { id handle createdAt availableForSale description descriptionHtml isGiftCard images(first: 99) { nodes { width url src id height altText } } productType publishedAt seo { description title } tags title vendor variants(first: 99) { nodes { id availableForSale barcode currentlyNotInStock sku title unitPrice { amount currencyCode } weight weightUnit selectedOptions { name value } image { altText height id originalSrc src width url } quantityAvailable } } } `, ]); exports.default = queryProduct; //# sourceMappingURL=queryProducts.js.map