multi query and pagination with firestore

后端 未结 4 955
自闭症患者
自闭症患者 2021-01-02 11:31

I am trying to implement multi query and pagination with firestore, but once I add < or > to the query the cursor not working.



        
4条回答
  •  再見小時候
    2021-01-02 11:40

    As Frank pointed out so far firestore doesn't permit combining ranges on different properties. I hope google will fix this someday, having multiple range filters seems like a pretty essential feature for any database.

    Also it's a rather ugly solution, but I guess you could leave out the .where('price', '>=', 2) part and filter out the data afterwards on the client.

提交回复
热议问题