Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page must be lower than or equal to 30 #45

Closed
chemitaxis opened this issue Jul 6, 2017 · 2 comments
Closed

Page must be lower than or equal to 30 #45

chemitaxis opened this issue Jul 6, 2017 · 2 comments

Comments

@chemitaxis
Copy link
Collaborator

Hi, can you please tell me why is this happen? Do I need any max size per page or validation? Thanks!

@chemitaxis
Copy link
Collaborator Author

Ok, I have found that you have this in querymen-schema.js, Can I just overwrite? Thanks!

page: {
        type: Number,
        default: 1,
        max: 30,
        min: 1,
        bindTo: 'cursor',
        parse: (value, path, operator, param) => {
          return {skip: this.param('limit').value() * (value - 1)}
        }
      }

@chemitaxis
Copy link
Collaborator Author

Ok, solved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant