Skip and limit
0 min
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 is 0 (when skip is not used). Optimizely Graph returns the top 10,000 hits, so the maximum value of skip is determined by this maximum and the size of limit.
- limit – The size of the result list (for example, the number of hits retrieved per request). By default, this is 20, with a maximum of 100.
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.