diegohaz/querymen

page must be lower than or equal to 30

brackio opened this issue · 4 comments

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

Try this:

querymen.middleware({
  page: {
    max: 100
  }
})

thanks. Is there a way to remove this restraint? I am doing pagination, and my pages can reach 300 and above.

It's good practice to define a maximum value, but you can always set max to Infinity. :)

@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.