
The filter part of a for loop can consist of four parts:
where e1
e1 is a boolean expression which needs to evaluate to true for the element to be iterated.
order by e2 asc/desc
e2 is an expression that needs to produce a primitive type such as String or Int, which will be used to order the elements ascending or descending.
limit e3
e3 is an Int expression which will limit the number of elements that get iterated.
offset e4
e4 is an Int expression which will offset the starting element of the iteration.
Each of the four parts is optional, but they have to be specified in this order. The filtering is done in the application, so use queries instead of filters to optimize the WebDSL application.