shopify-storefront
Version:
Wrapper for the Shopify's Storefront API.
80 lines • 1.75 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const astraql_1 = require("astraql");
const queryProduct = (0, astraql_1.query) `
products($first: Int, $last: Int, $query: String, $reverse: Boolean, $sortKey: ProductSortKeys) {
products(first: $first, last: $last, query: $query, reverse: $reverse, sortKey: $sortKey) {
nodes {
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=queryProducts.js.map