page must be lower than or equal to 30
brackio opened this issue · 4 comments
brackio commented
How do I remove the max validation of the page. I am getting this error.
max:30
message:"page must be lower than or equal to 30"
name:"max"
param:"page"
valid:false
diegohaz commented
Try this:
querymen.middleware({
page: {
max: 100
}
})
Deleted user commented
thanks. Is there a way to remove this restraint? I am doing pagination, and my pages can reach 300 and above.
diegohaz commented
It's good practice to define a maximum value, but you can always set max to Infinity
. :)
ShivamuruganS commented
@diegohaz You saved my day man, thanks a ton, you don't believe i was searching solution for this issue for 2 hours this is the only article i found for my exact case.