Skip to main content
openbridge.collections.list().before(cursor)
Sets the cursor for backward pagination. Use to fetch the previous page.

Parameters

ParamTypeRequiredDescription
cursorstringYespageInfo.startCursor from current response

Returns

CollectionListBuilder (chainable)

Examples

Go back one page

const previousPage = await openbridge.collections
    .list()
    .limit(10)
    .before(currentPage.pageInfo.startCursor)
const previousPage = await openbridge.collections
    .list()
    .search('sale')
    .limit(10)
    .before(currentPage.pageInfo.startCursor)