.select() to limit fields.
Parameters
Returns
ShopifyPage | null
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fetch a single page
openbridge.pages.get(idOrHandle)
openbridge.pages.get(idOrHandle).select(fields)
.select() to limit fields.
| Param | Type | Required | Description |
|---|---|---|---|
idOrHandle | string | Yes | Page handle or Shopify GID |
ShopifyPage | null
const page = await openbridge.pages.get('about-us')
if (page) {
console.log(page.title)
}
const page = await openbridge.pages.get(
'gid://shopify/Page/123456789'
)
const page = await openbridge.pages
.get('contact')
.select(['title', 'body', 'seo'])
const page = await openbridge.pages.get('non-existent')
if (!page) {
console.log('Page not found')
}