是不是想要从云数据库中查询到超过20条记录就只能使用云函数?

发布于 6 年前作者 chengjing6021 次浏览最后编辑 6 年前来自 issues
onLoad: function (options{
    var _this = this;
    const db = wx.cloud.database();  
    db.collection('order').get({
      successres => {
        console.log(res.data) 
        this.setData({
          noticeList: res.data
        })
      },
      fail:err=>{
        console.log(err)
      }
    })
  },
是不是上面这样写就没办法查询到超过20条记录?
4 回复
ping13
ping132 楼5 年前

要动脑筋用反证的:如果是这样,那云开发还有什么研究价值?

liutao
liutao3 楼5 年前

你试了吗?

rengang
rengang4 楼4 年前

嗯,限制的就是20条,你要么云函数 要么用分页