Skip to main content
openbridge.articles.list().before(cursor)
Fetches articles before the given cursor for backward pagination.

Parameters

ParamTypeRequiredDescription
cursorstringYesCursor from previous pageInfo

Returns

ArticleListBuilder (chainable)

Examples

Paginate backward

// Get a page
const currentPage = await openbridge.articles.list().limit(10)

// Get previous page
if (currentPage.pageInfo.hasPreviousPage) {
    const previousPage = await openbridge.articles
        .list()
        .limit(10)
        .before(currentPage.pageInfo.startCursor)
}