By default, all fields are returned. Use
.select() only when you want to optimize by fetching fewer fields.Parameters
Returns
PagesQueryBuilder (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.pages.list().select(fields)
openbridge.pages.get(handle).select(fields)
.select() only when you want to optimize by fetching fewer fields.| Param | Type | Required | Description |
|---|---|---|---|
fields | PageField[] | Yes | Array of field names |
PagesQueryBuilder (chainable)
type PageField =
| 'id'
| 'handle'
| 'title'
| 'body'
| 'bodySummary'
| 'createdAt'
| 'updatedAt'
| 'onlineStoreUrl'
| 'seo'
const { items } = await openbridge.pages
.list()
.select(['title', 'handle', 'bodySummary'])
const { items } = await openbridge.pages
.list()
.select(['title', 'handle'])
const page = await openbridge.pages
.get('about-us')
.select(['title', 'body', 'seo'])