Skip to main content
openbridge.products.list().select(fields)
openbridge.products.get(handle).select(fields)
Limits which fields to include in the response. Use this to optimize performance by reducing payload size.
By default, all fields are returned. Use .select() only when you want to optimize by fetching fewer fields.

Parameters

ParamTypeRequiredDescription
fieldsProductField[]YesFields to include

Available Fields

FieldType
idstring
handlestring
titlestring
descriptionstring
descriptionHtmlstring
availableForSaleboolean
featuredImageShopifyImage
imagesShopifyImage[]
priceRangeShopifyPriceRange
compareAtPriceRangeShopifyPriceRange
optionsShopifyProductOption[]
variantsShopifyProductVariant[]
sellingPlanGroupsShopifySellingPlanGroup[]
productTypestring
vendorstring
tagsstring[]
createdAtstring
updatedAtstring
publishedAtstring
onlineStoreUrlstring
seoShopifySeo

Returns

ProductsQueryBuilder (chainable)

Examples

Minimal fields

const { items } = await openbridge.products
    .list()
    .select(['id', 'title', 'handle'])

For product cards

const { items } = await openbridge.products
    .list()
    .select([
        'title',
        'handle',
        'priceRange',
        'featuredImage',
        'availableForSale'
    ])

For product page

const product = await openbridge.products
    .get('product-handle')
    .select([
        'title',
        'descriptionHtml',
        'images',
        'priceRange',
        'compareAtPriceRange',
        'options',
        'variants',
        'vendor'
    ])

For variant selector

const product = await openbridge.products
    .get('product-handle')
    .select(['options', 'variants'])