> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openbridge.shop/llms.txt
> Use this file to discover all available pages before exploring further.

# .select()

> Choose which fields to return

```javascript theme={null}
openbridge.articles.list().select(fields)
openbridge.articles.get(id).select(fields)
```

Limits which fields to include in the response. Use this to optimize performance by reducing payload size.

<Info>By default, **all fields** are returned. Use `.select()` only when you want to optimize by fetching fewer fields.</Info>

## Parameters

| Param    | Type             | Required | Description          |
| -------- | ---------------- | -------- | -------------------- |
| `fields` | `ArticleField[]` | Yes      | Array of field names |

## Returns

`ArticlesQueryBuilder` (chainable)

## Available Fields

```typescript theme={null}
type ArticleField =
    | 'id'
    | 'handle'
    | 'title'
    | 'content'
    | 'contentHtml'
    | 'excerpt'
    | 'excerptHtml'
    | 'publishedAt'
    | 'image'
    | 'blog'
    | 'author'
    | 'tags'
    | 'onlineStoreUrl'
    | 'seo'
```

## Examples

### Select specific fields

```javascript theme={null}
const { items } = await openbridge.articles
    .list()
    .select(['title', 'handle', 'image'])
```

### Minimal data for listing

```javascript theme={null}
const { items } = await openbridge.articles
    .list()
    .limit(10)
    .select(['title', 'handle', 'excerpt', 'publishedAt'])
```

### Full content for article page

```javascript theme={null}
const article = await openbridge.articles
    .get('gid://shopify/Article/123')
    .select(['title', 'contentHtml', 'image', 'author', 'publishedAt', 'seo'])
```
