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

Parameters

ParamTypeRequiredDescription
cursorstringYespageInfo.startCursor from current response

Returns

ProductListBuilder (chainable)

Examples

Go back one page

const previousPage = await openbridge.products
    .list()
    .limit(12)
    .before(currentPage.pageInfo.startCursor)

With collection

const previousPage = await openbridge.products
    .list()
    .collection('all')
    .limit(12)
    .before(currentPage.pageInfo.startCursor)