我想實現多個查詢和分頁與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)
沒有返回錯誤。它是否與Firestore或我的結局有關。
所以我不能結合範圍比較(<, <=, >,> =)與startAfter不同的屬性? 有沒有解決它的方法? – haim