Parameters
Returns
CollectionListBuilder (chainable)
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Search collections by query
openbridge.collections.list().search(query)
| Param | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query string |
CollectionListBuilder (chainable)
const { items } = await openbridge.collections.list().search('sale')
const { items } = await openbridge.collections.list().search('summer').limit(5)
const { items } = await openbridge.collections
.list()
.search('new')
.select(['title', 'handle', 'image'])
const page1 = await openbridge.collections.list().search('featured').limit(10)
if (page1.pageInfo.hasNextPage && page1.pageInfo.endCursor) {
const page2 = await openbridge.collections
.list()
.search('featured')
.limit(10)
.after(page1.pageInfo.endCursor)
}