Skip to main content
openbridge.collections
Query Shopify collections with support for pagination, field selection, and search.
See Types for full interface definitions.

Methods

.list()

Fetch multiple collections

.get()

Fetch a single collection

.search()

Search collections by query

.limit()

Set maximum results

.select()

Choose which fields to return

.after()

Paginate forward

.before()

Paginate backward

Quick Example

// List collections with pagination
const { items, pageInfo } = await openbridge.collections
    .search('sale')
    .limit(12)
    .select(['title', 'handle', 'image'])
    .list()

// Get single collection
const collection = await openbridge.collections.get('summer-sale')