This is a chainable method. Call
.list() or .get() to execute.Parameters
| Param | Type | Required | Description |
|---|---|---|---|
fields | ProductField[] | Yes | Fields to include |
Available Fields
| Field | Type |
|---|---|
id | string |
handle | string |
title | string |
description | string |
descriptionHtml | string |
availableForSale | boolean |
featuredImage | ShopifyImage |
images | ShopifyImage[] |
priceRange | ShopifyPriceRange |
compareAtPriceRange | ShopifyPriceRange |
options | ShopifyProductOption[] |
variants | ShopifyProductVariant[] |
productType | string |
vendor | string |
tags | string[] |
createdAt | string |
updatedAt | string |
publishedAt | string |
onlineStoreUrl | string |
seo | ShopifySeo |
Returns
ProductsQueryBuilder (chainable)
Examples
Minimal fields
For product cards
For product page
For variant selector
If
.select() is not called, default fields are returned.