腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(5079)
视频
沙龙
1
回答
如何从
firebase
函数
访问
firestore
、
、
我已经为一个无服务器的web应用程序启动了一个
Firebase
项目。从客户端,我可以访问
Firestore
数据库。在无服务器端,我编写了一个在http请求时调用的
函数
。该
函数
试图通过
Firestore
对象访问数据库,但它失败了,因为
Firestore
对象没有我认为它应该具有的collection()
函数
。在输出中,我显示了
Firestore
对象的内容。const functions = require('
firebase
-f
浏览 27
提问于2019-03-12
得票数 6
回答已采纳
4
回答
FieldValue.increment不是一个
函数
、
我花了几个小时
使用
云
函数
更新我的应用程序中存储在云
firestore
中的用户分数,但我得到了这个错误,我不知道如何解决这个问题。这是我的代码: const auth = require('
firebase
/auth'); const nodemailer = require('nodemailer'); co
浏览 58
提问于2019-10-17
得票数 1
2
回答
Firebase
函数
无法
使用
Admin
SDK
连
接到
Firestore
、
、
我正在
使用
Admin
SDK
编写一个
Firebase
函数
,它应该从
Firestore
中检索数据(
函数
在RealTime DB插入事件时触发)。看起来Relatime DB运行良好,但当我添加
Firestore
代码时,它在
Firestore
连接上失败,并在部署时出现以下错误: Error: Missing expected
firebase
这是我的
函数
代码,我遗漏了什么?const funct
浏览 24
提问于2021-08-13
得票数 0
1
回答
如何用v9
函数
中的getFirestore()正确地编写云
函数
onRequest?
、
、
、
send(array) return response.status(400).send(error) })这个
函数
正在返回一个空数组,而这个
函数
在普通客户端调用时会得到将近300个文件。是否需要以不同的格式
使用
query / where?
浏览 5
提问于2022-01-17
得票数 1
回答已采纳
2
回答
Python中的
Firestore
Emulator
、
、
、
我正在尝试
使用
python 3.8
连
接到
firestore
模拟器8.12。我很难找到一种联系的方式。我已经从云中的
Firestore
下载了我的密钥。但我正试着和当地的人联系。在本地连
接到
仿真器时,local.json文件是什么样子的?import osfrom
firebase
_
admin
import
firestore
from
fireba
浏览 7
提问于2021-06-08
得票数 1
1
回答
如何在
Firestore
中显式发送request.auth.uid?
、
、
、
在
Firestore
中创建文档之前,我
使用
Node.js后端进行一些验证。也就是说,如果所有检查都通过,我将
使用
firebase
-
admin
代表某些用户创建文档。事实上,这就是我所
使用
的: const
firebase
_
admin
= require('
firebase
-
admin
'); * SOME BUSINESS VALIDATIONS HERE*/ /
浏览 10
提问于2019-12-16
得票数 0
1
回答
无法
使用
时间戳从防火墙获取数据
、
、
我试图
使用
createdAt属性从集合中获取一个值,这是一个时间戳。new Date(now.setDate(now.getDate() - 1)) .get()但是,当我运行这个程序时,我会得到以下错误: 错误是'FirebaseError: code=无效-参数:
浏览 2
提问于2019-11-08
得票数 4
1
回答
TypeError: functions.database不是
函数
、
、
我想要更新或创建一个对象,但是在
firebase
函数
的注册表中有这个错误:"TypeError: functions.database is not a function“constfunctions = require('
firebase
-functions'); exports.actualizar = functions.https.onRequest((request,
浏览 5
提问于2018-08-21
得票数 0
1
回答
如何
使用
firestore
admin
nodejs
sdk
设置服务器时间戳?
、
、
、
、
const
firebase
= require('@
firebase
/app').default;const functions = require('
firebase
-functions') /
浏览 18
提问于2017-12-31
得票数 9
回答已采纳
2
回答
如何在具有管理权限的防火墙中
使用
initializeApp
、
、
、
、
当我尝试用
firebase
初始化应用程序时,我遇到了这个错误:“默认的
Firebase
应用程序不存在。请确保在
使用
任何
Firebase
服务之前调用initializeApp()”。这是我的剧本:const
admin
= require("
firebase
-
admin
"); const/
admin
浏览 9
提问于2020-05-03
得票数 1
回答已采纳
1
回答
云功能中的云修复
、
、
云功能文档显示 我
使用
的是云修复,而不是实时数据库。我怎样才能访问它?
浏览 0
提问于2019-07-01
得票数 0
回答已采纳
1
回答
如何将
Firebase
实时数据库写成自动修复?
、
、
、
我目前正在做一个项目,
使用
Arduino收集数据并将数据存储在云中,并在移动应用程序上显示云上的数据。根据我的尝试,Arduino只能将数据上传到
Firebase
实时数据库,但是我的Flutter移动应用程序需要将数据存储在
Firestore
中。在实时数据库中发生更改时,是否有任何方法可以自动将
firebase
实时数据库数据写入
Firestore
?这是实时数据库结构:我尝试每5秒读取一次数据,并将其写入
Firebase</
浏览 7
提问于2022-02-13
得票数 0
1
回答
DB.collection不是
firebase
中的
函数
吗?
、
、
我正在尝试连
接到
firebase
实时数据库(不是
firestore
),但我得到的错误是db.collection不是一个
函数
。StackOverflow中的其他答案是关于
Firestore
的。const
admin
= require('
firebase
-
admin
'); /
浏览 32
提问于2021-08-28
得票数 0
1
回答
云
函数
:预期集合()的第一个参数是CollectionReference、DocumentReference或FirebaseFirestore
、
、
、
嗨,我把这个功能写好了const
admin
= require("
firebase
-
admin
");const { setDoc, doc } = require("
firebase
/
firestore
");const db =
admin</e
浏览 4
提问于2022-09-28
得票数 0
1
回答
如何从云
函数
中访问Google集合,引用不同的
Firestore
集合?
、
、
、
、
以下内容(来自React )
无法
工作。我在医生里待了几个小时,但都没成功。有什么想法吗?import * as functions from "
firebase
-functions"; .
firestore
.docum
浏览 1
提问于2020-11-18
得票数 0
回答已采纳
2
回答
Python
firebase
_
admin
与google.cloud包
、
我正在努力使
Firestore
正常工作,我想知道我应该
使用
哪个Python包。
firebase
_
admin
.
firestore
和google.cloud.
firestore
的功能之间以及
firebase
_
admin
.credentials和google.auth.credentials但它们之间似乎也有一些不兼容之处,或者至少它们不能一起
使用
。谢谢!
浏览 22
提问于2022-05-18
得票数 1
回答已采纳
4
回答
firebase
.
firestore
.FieldValue.arrayUnion不是
函数
、
、
我正在尝试更新我的
firestore
中的数组,我遵循了谷歌(https://
firebase
.google.com/docs/
firestore
/manage-data/add-data)提供的文档,但它不起作用,我还检查了一下,以确保我有最新版本的
firebase
npm模块。$route.params.id.toLowerCase()) myArr: <
浏览 88
提问于2018-08-27
得票数 7
回答已采纳
3
回答
Firebase
@google-云/防火墙包类型记录错误重复标识符'DocumentData‘
、
、
、
我
使用
的是
firebase
云
函数
,
使用
的是类型记录,每件事情都很好。offsetSlightly(location:GeoPoint) { return new GeoPoint(latitude, longitude)因此,我需要添加
使用
命令添加的节点模块错误: node_modules/
firebase
-
admin
/node_modules/@google-clo
浏览 1
提问于2018-06-20
得票数 5
回答已采纳
2
回答
ReferenceError:在nx + nextjs应用程序中
使用
Firebase
Admin
初始化之前不能访问“__WEBPACK_DEFAULT_EXPORT__”
、
、
、
、
/checkConfig';import '
firebase
-
admin
/auth';import { getAuth } from '
firebase</
浏览 8
提问于2022-01-09
得票数 0
4
回答
如何在node js中启用` in reUnfinedProperties`
、
、
、
我正在用Nodejs和Express为我的应用程序开发REST api。但每次我尝试发送一个请求时,我都会得到一个未定义的错误。请告诉我怎样才能启用'ignoreundefinedproperties‘
浏览 3
提问于2020-05-23
得票数 27
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Firebase模块的使用方法
我们弃用 Firebase了
App后端服务,你是选择AWS还是Firebase?
手把手教你用苹果Core ML和Swift开发人脸目标识别APP
教程帖:用TensorFlow自制Taylor Swift识别器
热门
标签
更多标签
云服务器
ICP备案
对象存储
实时音视频
即时通信 IM
活动推荐
运营活动
广告
关闭
领券