A new @limit variable is set to 20 by default. This variable is available for all your AQL requests.
FOR video IN videos
LIMIT @limit
RETURN video
You can of course define the limit value via the route's splat. /en/-/home/limit/5
.
To define the root page you have to define the General settings JSON. We just added a new default splat to give you the ability to pass some variables to the home page.
{
"all": "-",
"slug": "home",
"splat": "limit/3"
}
It's very useful to have such params on the /
route.