New @limit default value and new splat settings

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

About the splat settings

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.


Leave a comment