【发布时间】:2021-10-18 11:28:23
【问题描述】:
我有一个名为Channels 的集合,在其中我有一个名为messages 的子集合,所以我想过滤频道集合然后我想从中获取消息?
FirebaseFirestore.instance
.collection('Channels') >> where(id = user.uid) <<<<< I want to filter this
.doc()
.collection("messages")
.orderBy("createdAt")
.snapshots(),
*任何帮助将不胜感激^^
错误:
没有为类型“查询”定义方法“文档”。 尝试将名称更正为现有方法的名称,或定义名为“doc”的方法。
【问题讨论】:
标签: firebase flutter google-cloud-firestore