diff --git a/src/data.js b/src/data.js index 65467c3..0cbee16 100644 --- a/src/data.js +++ b/src/data.js @@ -411,6 +411,18 @@ class Data extends QueryBuilder { return this.withQuery({page_size: count}) // eslint-disable-line camelcase } + /** + * Number of objects to skip from the start. + * + * @return {Promise} + * + * @example {@lang javascript} + * const posts = await data.posts.skip(5).list() + */ + skip(count) { + return this.withQuery({last_pk: count, direction: 1}) // eslint-disable-line camelcase + } + /** * Set order of fetched objects. *