By default, all fields are returned. Use
.select() only when you want to optimize by fetching fewer fields.Parameters
Returns
ArticlesQueryBuilder (chainable)
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Choose which fields to return
openbridge.articles.list().select(fields)
openbridge.articles.get(id).select(fields)
.select() only when you want to optimize by fetching fewer fields.| Param | Type | Required | Description |
|---|---|---|---|
fields | ArticleField[] | Yes | Array of field names |
ArticlesQueryBuilder (chainable)
type ArticleField =
| 'id'
| 'handle'
| 'title'
| 'content'
| 'contentHtml'
| 'excerpt'
| 'excerptHtml'
| 'publishedAt'
| 'image'
| 'blog'
| 'author'
| 'tags'
| 'onlineStoreUrl'
| 'seo'
const { items } = await openbridge.articles
.list()
.select(['title', 'handle', 'image'])
const { items } = await openbridge.articles
.list()
.limit(10)
.select(['title', 'handle', 'excerpt', 'publishedAt'])
const article = await openbridge.articles
.get('gid://shopify/Article/123')
.select(['title', 'contentHtml', 'image', 'author', 'publishedAt', 'seo'])