> ## 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.

# .list()

> Fetch multiple collections

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

Fetches a list of collections. Supports chaining methods to configure the query.

## Chainable Methods

| Method            | Description                              |
| ----------------- | ---------------------------------------- |
| `.limit(count)`   | Limit number of results (default: 250)   |
| `.after(cursor)`  | Fetch results after cursor (pagination)  |
| `.before(cursor)` | Fetch results before cursor (pagination) |
| `.search(query)`  | Filter by search query                   |
| `.select(fields)` | Limit returned fields                    |

## Returns

[`CollectionsResult`](/api/types/collections#collectionsresult)

```typescript theme={null}
{
  items: ShopifyCollection[]
  pageInfo: ShopifyPageInfo
}
```

## Examples

### Basic usage

```javascript theme={null}
const { items, pageInfo } = await openbridge.collections.list()
```

### With limit

```javascript theme={null}
const { items } = await openbridge.collections
    .list()
    .limit(10)
```

### With chained methods

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

### Pagination

```javascript theme={null}
const page1 = await openbridge.collections.list().limit(10)

if (page1.pageInfo.hasNextPage && page1.pageInfo.endCursor) {
    const page2 = await openbridge.collections
        .list()
        .limit(10)
        .after(page1.pageInfo.endCursor)
}
```
