为了账号安全,请及时绑定邮箱和手机立即绑定

为什么 ref.getCollections() 不被识别为函数?

为什么 ref.getCollections() 不被识别为函数?

12345678_0001 2021-06-22 17:38:06
我正在做一个将用户数据存储在 cloud firestore 上的网站。我使用它一次获取用户文档的所有子集合:db.collection('users').doc(userID).getCollections().then( collections => {  /*I get my collections and I enjoy it :D*/})问题是无法识别此功能。我在控制台上找到了这条消息:TypeError: db.collection(...).doc(...).getCollections is not a function我知道否则我可以获得所有子集,但由于配额有限,我想保存最大的读数。所有其他 firebase 函数都在我的项目中工作(如get()或set())并且getCollections()在文档中。谢谢您帮忙 !
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 133 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信