【发布时间】:2017-10-17 05:01:20
【问题描述】:
我正在尝试使用 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)
没有返回错误。是firestore的错误还是我的问题。
【问题讨论】:
标签: firebase google-cloud-firestore