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

# .before()

> Paginate backward

```javascript theme={null}
openbridge.collections.list().before(cursor)
```

Sets the cursor for backward pagination. Use to fetch the previous page.

## Parameters

| Param    | Type     | Required | Description                                  |
| -------- | -------- | -------- | -------------------------------------------- |
| `cursor` | `string` | Yes      | `pageInfo.startCursor` from current response |

## Returns

`CollectionListBuilder` (chainable)

## Examples

### Go back one page

```javascript theme={null}
const previousPage = await openbridge.collections
    .list()
    .limit(10)
    .before(currentPage.pageInfo.startCursor)
```

### With search

```javascript theme={null}
const previousPage = await openbridge.collections
    .list()
    .search('sale')
    .limit(10)
    .before(currentPage.pageInfo.startCursor)
```
