We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sort with skip and limit option is not working. It brings all the data on the table. Please refer code below.
var sortData = { id: 'asc', title: 'asc', status: 'asc', createdAt: 'asc' } geddy.model.Todo.all({}, {sort:sortData}, { skip: 0, limit: geddy.config.pagelimit }, function (err, todos) { console.log(err); self.respond({ params: params, todos: todos }); });
The text was updated successfully, but these errors were encountered:
FOUND THE CORRECT SYNTAX:
geddy.model.Todo.all({}, {sort:sortData, skip:0, limit:10}, function (err, todos) { console.log(err); self.respond({ params: params, todos: todos }); });
Sorry, something went wrong.
Glad you got yourself sorted!
No branches or pull requests
Sort with skip and limit option is not working. It brings all the data on the table. Please refer code below.
The text was updated successfully, but these errors were encountered: