Returns
ProductsResult
Fetch multiple products
shoppy.products.list()
ProductsResult
{
items: ShopifyProduct[];
pageInfo: ShopifyPageInfo;
}
const { items, pageInfo } = await shoppy.products.list()
const { items } = await shoppy.products
.limit(20)
.select(['title', 'handle', 'priceRange'])
.list()
const { items } = await shoppy.products
.collection('new-arrivals')
.limit(8)
.list()
const { items } = await shoppy.products.search('blue shirt').limit(10).list()
const { items, pageInfo } = await shoppy.products
.collection('sale')
.search('cotton')
.limit(12)
.select([
'title',
'handle',
'priceRange',
'featuredImage',
'availableForSale'
])
.list()