相关疑难解决方法(0)

使用firestore进行多查询和分页

我正在尝试使用firestore实现多查询和分页,但是一旦我将<或>添加到查询中,光标就无法正常工作.

//working example:
the doc id i save as propery on the doc
ref.where('category','==' 'cats').where('status', '==', 1).orderBy('id').cursor('last doc id from the returned list').limit(3)

//not working exmple:

ref.where('category','==' 'cats').where('status', '==', 1).orderBy('price').where('price', '>=', 2).where('price', '<=', 55).orderBy('id').cursor('last doc id from the returned list').limit(3)
Run Code Online (Sandbox Code Playgroud)

没有错误返回.是firestore还是我的错误?

firebase google-cloud-firestore

4
推荐指数
2
解决办法
1万
查看次数

标签 统计

firebase ×1

google-cloud-firestore ×1