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

# .after()

> Paginate forward through pages

```javascript theme={null}
openbridge.pages.list().after(cursor)
```

Fetches pages after the given cursor for forward pagination.

## Parameters

| Param    | Type     | Required | Description                     |
| -------- | -------- | -------- | ------------------------------- |
| `cursor` | `string` | Yes      | Cursor from previous `pageInfo` |

## Returns

`PageListBuilder` (chainable)

## Examples

### Paginate forward

```javascript theme={null}
// Get first page
const page1 = await openbridge.pages.list().limit(10)

// Get next page
if (page1.pageInfo.hasNextPage && page1.pageInfo.endCursor) {
    const page2 = await openbridge.pages
        .list()
        .limit(10)
        .after(page1.pageInfo.endCursor)
}
```

### Load more pattern

```javascript theme={null}
let cursor = null
const allPages = []

async function loadMore() {
    let query = openbridge.pages.list().limit(10)

    if (cursor) {
        query = query.after(cursor)
    }

    const { items, pageInfo } = await query

    allPages.push(...items)
    cursor = pageInfo.endCursor

    return pageInfo.hasNextPage
}
```
