Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

The SDK database Aggregate skips a specified number of documents


May 20, 2021 WeChat Mini Program Development Document


Table of contents


Aggregate.skip(value: number): Aggregate

Support: Small program 2.7.4, cloud function 0.8.1, Web

The aggregation phase. Specify a positive integer, skip the corresponding number of documents, and output the remaining documents.

Parameters

value: number

Returns a value

Aggregate

Example

db.collection('users')
  .aggregate()
  .skip(5)
  .end()

This code skips the first 5 documents found and outputs the remaining documents.