Skip and limit
Describes the skip and limit parameters, part of the GraphQL API used for the Optimizely querying service, when retrieving content in Optimizely solutions.
The skip and limit arguments paginate the result list returned by an Optimizely Graph query. Use them to render results page by page in a UI, to chunk a backend processing job into manageable batches, or to keep query payloads small while still walking the full set of matches.
The following list defines each argument and its default and maximum values:
skip– The offset in the result list (for example, the position of the first hit). By default, this is0(whenskipis not used). Optimizely Graph returns the top 10,000 hits, so the maximum value ofskipis determined by this maximum and the size oflimit.limit– The size of the result list (for example, the number of hits retrieved per request). By default, this is20, with a maximum of100.
For example, when the limit is 20, the skip can be a maximum of 9,860.
When you need to walk past the 10,000-hit cap, use cursor instead of skip for stateful batch retrieval.
Updated 2 days ago
