腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9319)
视频
沙龙
1
回答
使用
云
函数
通过
Firestore
观看
collectionGroup
、
、
我正在开发一个
使用
collectionGroups的
Firestore
DB。 有问题的
collectionGroup
是一个“Fight”的集合。当创建一个新的战斗时,我想在
云
函数
中
使用
onCreate方法来观察新的“战斗”条目,然后向其中添加一些元数据。理想情况下,它看起来像下面的伪代码 export const placeFightersInEvent = functions.
firestore
.
collectionGroup
('f
浏览 15
提问于2019-10-01
得票数 1
回答已采纳
1
回答
防火墙-在
云
功能中
使用
collectionGroup
查询
、
、
、
我想在
云
函数
中
使用
collectionGroup
查询,只有当我从firebase/app导入时,它才会出现:constdb = firebase.
firestore
(); const snap = await db.
collectionGroup
('comments').where('foo', '==&
浏览 1
提问于2019-06-30
得票数 1
回答已采纳
1
回答
firebase
函数
中的错误,Firebase:未创建Firebase应用程序“[默认]”
、
、
、
、
我试图在一个
函数
中与数据库进行交互,但是当我试图在firebase
函数
中
使用
doc()
函数
时,会出现一个错误import * as admin from &
浏览 3
提问于2022-08-04
得票数 1
回答已采纳
1
回答
如何
使用
firebase admin sdk获得有关防火墙更改的通知
、
、
、
所以我
使用
的是firebase
函数
。let messeging = admin.messaging();console.log("Firebase Admin Initialized"); .collection("users") .collect
浏览 10
提问于2022-12-03
得票数 0
1
回答
云
函数
中的批处理写入或事务?
、
、
我有以下
云
函数
,并想知道我是应该
使用
批写还是
使用
事务:// The following two queries potentiallyreturn hundreds of documents. const queryA =
firestore
.
collectionGroup
('a').where('b', '=
浏览 0
提问于2019-06-18
得票数 2
回答已采纳
1
回答
Firestore
子集合'!=‘查询
我知道
Firestore
不支持'!这是不是可以
通过
一个神奇的
云
函数
来实现?
浏览 17
提问于2019-09-26
得票数 1
回答已采纳
2
回答
在每个由geofirestore查询生成的文档下添加子集合
、
、
我
使用
云
函数
geofirestore查询了'users/userid/pros‘
firestore
集合,并从查询中获得了一些特定的文档(’users/userid/pros/proid‘)。firebase-admin'); const
firestore
浏览 11
提问于2021-01-13
得票数 0
回答已采纳
2
回答
Firestore
update功能不适用于
collectionGroup
、
、
、
我正在尝试更新
firestore
中的文档,但是当我不
使用
collectionGroup
而是
通过
id获取文档时,我得到了"Unhandled error TypeError: res.docs.updateis not a function\n“更新
函数
运行良好。下面是我的代码: await db.
collectionGroup
('campaigns').where('campaignId', '==', data.ca
浏览 5
提问于2021-04-12
得票数 0
1
回答
如何
通过
Id从
collectionGroup
获取文档
、
、
、
我的数据库看起来像这样但是对于
collec
浏览 7
提问于2019-10-29
得票数 0
1
回答
在Cloud和
Firestore
中获取对文档id的查询文档
、
、
在防火墙
云
函数
中,我在更新文档上有一个触发器,在这个
函数
中,我想获得包含特定字符串的文档。所以我试了一下: const chat_threads = admin.
firestore
().
collectionGroup
('chatThreads').where(admin.
firestore
.FieldPath.documentId
浏览 6
提问于2021-12-28
得票数 2
3
回答
具有路径未知的ID的
Firestore
文档- Firebase Cloud
函数
、
、
、
我对Firebase
云
功能非常陌生。原谅我的天真问题。我有一个这种格式的
Firestore
数据库:我的问题是如何在不知道Soap的完整路径的情况下获得它的字段我阅读了firebase
云
函数
文档,但它更令人困惑。exports.test = functions cors(req,res, async () =&
浏览 25
提问于2022-08-09
得票数 0
1
回答
有没有办法在
云
函数
中更新
collectionGroup
?
、
、
、
当用户在本地配置文件上进行更新时,我希望
使用
云
函数
在
collectionGroup
上进行更新。我成功地监听了
云
函数
中的更新,并检索到了包含以下内容的collectionGroups列表: const collectionGroupNameref = await db.
collectionGroup
connectionsRef = await db.collection('collectionGroupName').doc(val.
浏览 18
提问于2019-11-26
得票数 2
回答已采纳
1
回答
如何在“角/火”
collectionGroup
中
使用
7+
、
、
、
总是犯同样的错误: import {
collectionGroup
,
Firestore
,
浏览 4
提问于2022-04-23
得票数 3
1
回答
collectionGroup
中的颤振Firebase
collectionGroup
、
、
为什么我不能在whereQuery中
使用
collectionGroup
。当我像那样
使用
whereQuery时;它起作用了,但当我像那样
使用
whereQuery时; Query colRef = _
firestore
.
collect
浏览 2
提问于2021-10-22
得票数 1
回答已采纳
1
回答
获得“`eslint”-解析错误,同时编译firebase
云
函数
、
、
、
、
最近,我开始从事一个基于firebase
云
功能和防火墙数据库的项目。我正在编写一个
云
函数
触发
函数
,它将在正在创建的新文档上查询一个“集合组”。下面是
云
函数
代码文件: .document('businessmen/{businessmenId}/buybusinessmenId : ', businessmenId, ' bu
浏览 1
提问于2021-11-22
得票数 0
回答已采纳
1
回答
无法从
firestore
获取文档
、
、
、
我正在尝试在一个Firebase
云
函数
中console.log一个来自
Firestore
的文档。有人能帮我弄一下代码吗?
浏览 16
提问于2019-01-12
得票数 3
回答已采纳
1
回答
通过
子集合值查询firebase文档
、
、
、
我有一个具有以下结构的Firebase
Firestore
DB:await FirebaseFirestore.instance.
collectionGroup
('Reports')
浏览 1
提问于2022-06-11
得票数 1
回答已采纳
1
回答
快照/集合组
函数
上的firebase不被识别为
函数
、
、
、
因此,我试图
使用
这些firebase
函数
,我根据firebase文档正确地导入了它们--这是我的代码: import {
collectionGroup
, addDoc, getDoc, doc } from "firebase/
firestore
"; import{ onSnapshot, collection } f
浏览 1
提问于2022-10-01
得票数 0
回答已采纳
1
回答
云
函数
中Firebase子集合中的复合查询?
、
搜索集合中所有文档的复合查询可以很好地工作,如下所示: var newData = admin.
firestore
().collection("MyProject").where('username', '==', 'myname'); 为了存储更多的用户生成的数据,我
使用
了"collection/doc/collection/doc“功能,文档是根据用户的输入自动生成的。现在,要查询在最后一个文档中创建了任何内容的数据,我需要如下内容:
浏览 42
提问于2020-02-02
得票数 0
回答已采纳
2
回答
云
功能更新子-集合
、
、
数据
通过
复制主产品根集合中的特定项目来“得到”,其思想是我的项目具有良好的性能和成本效益。为了使其工作,我需要创建一个
云
函数
,以便在每次产品修改和查询所有具有相同产品id的存储并更新数据时触发
云
功能。 .where('id', '==
浏览 0
提问于2019-09-10
得票数 3
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Scanetchain使用AR平台通过付费观看广告来吸引购物者使用区块链技术
Django 做后端,Vue前端,通过使用融云制作聊天功能
使用 SCF 无服务器云函数定时拨测站点并邮件告警
我们弃用 Firebase了
谷歌Cloud Firestore发布,零管理的数据库是亮点
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券