Limits the number of results returned by a select query. It is possible, like in the Where attribute, to specify a value using the arguments by adding the dollar sign and the argument's index in the method.
interface ExampleRepository : Repository!Example { @Limit(5) Example[] select5(); @Limit("$0", "$1") Example[] selectInRange(size_t lowerLimit, size_t upperLimit); }
See Implementation
Limits the number of results returned by a select query. It is possible, like in the Where attribute, to specify a value using the arguments by adding the dollar sign and the argument's index in the method.