【问题标题】:Firestore firebaseFirestore 火力基地
【发布时间】:2020-07-10 08:22:30
【问题描述】:

我想通过字段接收器中的_id查询所有数据(如下图),我使用firestore firebase。谁能帮我?

【问题讨论】:

  • 你遇到了什么错误?
  • 我想通过接收器中的归档 id 获取列表通知!你能帮帮我吗?
  • 您是否尝试过查看文档firebase.google.com/docs/firestore

标签: reactjs firebase google-cloud-firestore


【解决方案1】:

如果要查询文档以查找嵌套在地图字段中的值,可以使用点表示法来查找该值:

firestore.collection("notifications").where("receiver.id", "==", x)

【讨论】:

  • 您好,非常感谢,我添加 _ 可能是 firestore.collection("notifications").where("receiver._id", "==", x)。它的工作
  • 太棒了!现在,在 Stack Overflow 上,习惯上使用答案右侧的复选标记按钮将有用的答案标记为正确。
猜你喜欢
  • 2016-09-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-06-05
  • 2016-08-03
  • 2021-05-04
相关资源
最近更新 更多