# 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 cloud = require('wx-server-sdk')
cloud.init()
const db = cloud.database()
exports.main = async (event, context) => {
  try {
    return await db.collection('todos').skip(10).get()
  } catch(e) {
    console.error(e)
  }
}