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

Method: skip #92

Open
Idered opened this issue Oct 19, 2017 · 3 comments
Open

Method: skip #92

Idered opened this issue Oct 19, 2017 · 3 comments

Comments

@Idered
Copy link
Member

Idered commented Oct 19, 2017

// For example: we have 15 posts in database. Skip method should omit given number of posts. 
// In this case, 10 posts should be returned
data.posts
  .skip(5)
  .list()
@mukulmishra18
Copy link

@Idered I want to work on it. Can you please help me how I can query for skip(5) ?

I am thinking something like:

skip(count) {
  return this.withQuery({ ??? })
}

@Idered
Copy link
Member Author

Idered commented Oct 20, 2017

Hey @mukulmishra18 check this for reference https://docs.syncano.io/v0.2/docs/data-object-list#section-manual-paging

Also please remember about unit and end to end tests :)

@mukulmishra18
Copy link

mukulmishra18 commented Oct 21, 2017

Also please remember about unit and end to end tests

Running npm test gives me some test failure in devel branch. Is there any problem(Maybe it is due to slow internet connection)?

mukulmishra18 added a commit to mukulmishra18/syncano-server-js that referenced this issue Oct 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants