Google cloud firestore 如何查询Firestore中的嵌套字段?

Google cloud firestore 如何查询Firestore中的嵌套字段?,google-cloud-firestore,Google Cloud Firestore,我的firestore文档包含一个名为id的字段,该字段位于名为订单的集合中名为场馆部分的地图中 |-orders //collection order //doc venue {id:'12345'}. Map in doc called venue that contains a string field called id 我想使用isEqualTo来查询此字段。如何引用该字段?。。。 找到了解决办法……很容易 就我而言: quer

我的firestore文档包含一个名为
id
的字段,该字段位于名为订单的集合中名为场馆部分的地图中

|-orders     //collection
        order  //doc
          venue {id:'12345'}.      Map in doc called venue that contains a string field called id
我想使用
isEqualTo
来查询此字段。如何引用该字段?

。。。 找到了解决办法……很容易

就我而言:

query.where('venue.id',isEqualTo: '12'),