Query over list in firebase

后端 未结 2 1639
走了就别回头了
走了就别回头了 2020-12-22 07:20

I\'ve the below custom model for firebase, I need to query for the cities with specific tags, I tried the below code but did not work :(

data class City(
            


        
2条回答
  •  悲哀的现实
    2020-12-22 07:49

    Firestore queries only support equality and range operations. They don't support regular expressions. You will have to perform two queries and merge the result on the client.

    See:

    • How to perform compound queries with logical OR in Cloud Firestore?
    • Firestore Query Across Multiple Fields for Same Value

提交回复
热议问题