To ensure our platform's performance and reliability, we enforce pagination limits with a max size of 25 results per page on most API queries. This includes viewer.recipes, viewer.recipeConnection, viewer.menus, viewer.menuConnection and any connection query. The example below shows how the paginationOptions argument can be used to easily loop through all results.

query getRecipes($paginationOptions:PaginationOptions){
viewer{
recipeConnection(paginationOptions:$paginationOptions){
pageInfo{
hasNextPage
startIndex
endIndex
}
edges{
node{
id
name
}
}
}
}
}

{
"paginationOptions": {
"first": 25,
"startIndex": 0
}
}

Any script using one of the queries above with a limit greater than 25 will result in an error while any script without a limit set will automatically have a limit of 25.

Did this answer your question?