wx.cloud.database.collection.
limit
max (number) – 定义最大结果集返回数量,上限 20
Collection | Query
const db = wx.cloud.database() db.collection('todos').limit(10) .get() .then(console.log) .catch(console.error)