Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fetch a single collection
openbridge.collections.get(idOrHandle) openbridge.collections.get(idOrHandle).select(fields)
.select()
idOrHandle
string
ShopifyCollection
| null
const collection = await openbridge.collections.get('summer-sale') if (collection) { console.log(collection.title) }
const collection = await openbridge.collections.get( 'gid://shopify/Collection/123456789' )
const collection = await openbridge.collections .get('new-arrivals') .select(['title', 'handle', 'image', 'seo'])
const collection = await openbridge.collections.get('non-existent') if (!collection) { console.log('Collection not found') }