Chainable Methods
Returns
ArticlesResult
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fetch multiple articles
openbridge.articles.list()
openbridge.articles.list().blog('news').limit(10)
| Method | Description |
|---|---|
.limit(count) | Limit number of results (default: 250) |
.after(cursor) | Fetch results after cursor (pagination) |
.before(cursor) | Fetch results before cursor (pagination) |
.search(query) | Filter by search query |
.blog(handle) | Filter by blog handle |
.reverse() | Reverse the order |
.select(fields) | Limit returned fields |
ArticlesResult
{
items: ShopifyArticle[]
pageInfo: ShopifyPageInfo
}
const { items, pageInfo } = await openbridge.articles.list()
const { items } = await openbridge.articles
.list()
.blog('news')
.limit(10)
const { items, pageInfo } = await openbridge.articles
.list()
.blog('news')
.limit(10)
.select(['title', 'handle', 'image', 'excerpt'])
const page1 = await openbridge.articles.list().limit(10)
if (page1.pageInfo.hasNextPage && page1.pageInfo.endCursor) {
const page2 = await openbridge.articles
.list()
.limit(10)
.after(page1.pageInfo.endCursor)
}