shopify-storefront
Version:
Wrapper for the Shopify's Storefront API.
68 lines • 1.27 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const graphql_1 = require("../../../graphql");
const queryProduct = (0, graphql_1.buildQuery)('product', {
handle: 'String',
id: 'ID',
}, [
`
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=queryProduct.js.map