shopify-storefront
Version:
Wrapper for the Shopify's Storefront API.
78 lines • 1.48 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const astraql_1 = require("astraql");
const queryProduct = (0, astraql_1.query) `
product($handle: String, $id: ID) {
product(handle: $handle, id: $id) {
availableForSale
createdAt
description
descriptionHtml
handle
id
isGiftCard
images(first: 100) {
nodes {
altText
height
id
url
width
}
}
onlineStoreUrl
options {
id
name
values
}
productType
publishedAt
requiresSellingPlan
seo {
description
title
}
tags
title
totalInventory
updatedAt
vendor
variants(first: 100) {
nodes {
availableForSale
barcode
currentlyNotInStock
id
image {
altText
height
id
url
width
}
price {
amount
currencyCode
}
quantityAvailable
requiresShipping
selectedOptions {
name
value
}
sku
title
unitPrice {
amount
currencyCode
}
weight
weightUnit
}
}
}
}
`;
exports.default = queryProduct;
//# sourceMappingURL=queryProduct.js.map