繁体   English   中英

Firebase 查询where

[英]Firebase Query with where

如何查询 firebase 的位置? 例如,我想访问照片结构中 locationEvent 的 nameL。

我正在使用 flutter 来编写我的应用程序。

火力基地照片

文档中所示,您可以执行以下操作:

// Create a reference to the collection
final collectionRef = db.collection('collectionName');

// Create a query against the collection.
final query = collectionRef.where('locationEvent.${nameL}', isEqualTo: 'jkn');

// Execute the query
query.get().then(
  (res) => print("Successfully completed"),
  onError: (e) => print("Error completing: $e"),
);

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM