> ## 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.collections.list().select(fields)
openbridge.collections.get(handle).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` | [`CollectionField[]`](/api/types/collections#collectionfield) | Yes      | Fields to include |

## Available Fields

| Field             | Type                                             |
| ----------------- | ------------------------------------------------ |
| `id`              | `string`                                         |
| `handle`          | `string`                                         |
| `title`           | `string`                                         |
| `description`     | `string`                                         |
| `descriptionHtml` | `string`                                         |
| `image`           | [`ShopifyImage`](/api/types/shared#shopifyimage) |
| `updatedAt`       | `string`                                         |
| `onlineStoreUrl`  | `string`                                         |
| `seo`             | [`ShopifySeo`](/api/types/shared#shopifyseo)     |

## Returns

`CollectionsQueryBuilder` (chainable)

## Examples

### Minimal fields

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

### For collection cards

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

### For collection page

```javascript theme={null}
const collection = await openbridge.collections
    .get('summer-sale')
    .select(['title', 'descriptionHtml', 'image', 'seo'])
```

### For navigation

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