This is a chainable method. Call
.list() or .get() to execute.Parameters
| Param | Type | Required | Description |
|---|---|---|---|
fields | CollectionField[] | Yes | Fields to include |
Available Fields
| Field | Type |
|---|---|
id | string |
handle | string |
title | string |
description | string |
descriptionHtml | string |
image | ShopifyImage |
seo | ShopifySeo |
updatedAt | string |
Returns
CollectionsQueryBuilder (chainable)
Examples
Minimal fields
For collection cards
For collection page
For navigation
If
.select() is not called, default fields are returned.