# Collection.skip / Query.skip

Specifies that the query results are returned from the one after the specified sequence, generally used for paging.

The method signature is shown as below:

function skip(offset: number): Collection | Query

Sample code

const db = wx.cloud.database()
db.collection('todos').skip(10)
  .get()
  .then(console.log)
  .catch(console.error)
点击咨询小助手