Skip to main content
shoppy.pages.limit(count)
Sets the maximum number of pages to return per request.

Parameters

ParamTypeRequiredDescription
countnumberYesMaximum pages to return

Returns

PagesQueryBuilder (chainable)

Default

10 pages

Examples

Set limit

const { items } = await shoppy.pages.limit(20).list()

With other options

const { items } = await shoppy.pages
    .limit(5)
    .select(['title', 'handle'])
    .list()