javascript - 如何列出firestore中的所有集合
问题描述
我想以角度 11 获取我的文档中的所有子集合。方法 listCollections() 不起作用。
const snapshot = await this.firestore.collection("companies").doc(this.id).listCollections().valueChanges();
snapshot.subscribe(val=> this.data.push(val))
console.log(this.data);
解决方案
推荐阅读
- javascript - RxJS:为什么内部可观察首先触发?
- r - 限制data.frame中的列超过条件
- android - 从三星 S10 Android 手机开始时,应用程序未在 Google Play 商店中列出
- python - 访问在本地 HTTP 主机上运行的视频流
- python - 私人聊天消息 django 如 facebook
- api - 如何将api输出json转换为csv文件
- javascript - 如何检查一个数组是否包含另一个数组的任何值
- asp.net-core - 没有可用于指定 RuntimeIdentifier 'browser-wasm' 的 Microsoft.AspNetCore.App 运行时包
- java - If line.startsWith("something") don't write this line nor the next line
- karate - 我对仅在空手道中包含的功能有疑问?