Firebase查询返回空

时间:2020-09-14 09:09:40

标签: firebase google-cloud-firestore

我有这个firebase查询:

 snap = await _db
          .collection("products")
          .where("product_name", isEqualTo: "headphone")
          .getDocuments();

我在firestore中有一个文档,其中product_name是“ headphone”,但仍返回null。

如何解决?还是在Firestore中寻找更好的文档?

0 个答案:

没有答案
相关问题