按条件分页的问题
- 当前 Bug 的表现(可附上截图)

skip()函数不能与where() orderBy()连用,skip(m) m 不能为0,各位又遇到过么
3 回复
你好,请参考以下帖子:
小程序云开发Collection.skip / Query.skip不能设置为0
https://developers.weixin.qq.com/community/develop/doc/000aead6b84f307a9c57ca0815a400
我不太懂这个问题,但是可以将前面的where和orderBy写成query吧。
ctx.state.data = (await DB.query(‘select * from product where product.id = ?’, [productId]))