因此,我已经为应用程序(Typescript/Javascript)使用FireStore有一段时间了。 在unity中工作,我刚刚安装了FireStore for Unity的所有合适的包和依赖项。 我不知道如何初始化FireStore对象以将其连接到我的Firebase FireStore。 统一的Firebase似乎相对较新,因为几乎没有文档。 带有unity文档的FireStore似乎几乎不存在。 C# firestoreTest using System.Collections;
using System.Collections.Generic;
using UnityEngine
我使用VisualStudio作为集成开发环境。在添加cloud_firestore:^0.13.7作为依赖项并运行pub get时,我收到以下错误: [firebase] flutter pub get
Running "flutter pub get" in firebase...
Because cloud_firestore >=0.13.4 depends on cloud_firestore_web ^0.1.1 which depends on firebase ^7.0.0, cloud_firestore
当我在终端中输入“ pub get”命令时,我得到了这个错误;
错误消息:
Because cloud_firestore >=0.13.4 <0.14.0-dev.1 depends on cloud_firestore_web ^0.1.1 which depends on
firebase ^7.0.0, cloud_firestore >=0.13.4 <0.14.0-dev.1 requires firebase
^7.0.0.
So, because firebase depends on cloud_firestore ^0.13.7 and fire
在我的flutter/firebase项目中安装的pod有一个很大的问题。
每次"pod install“后都会收到这样的信息:
"Analyzing dependencies
cloud_firestore: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
cloud_functions: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
firebase_anal
我想在Firebase Cloud Firestore中追加数组中的数据。为此,我使用FieldValue.arrayUnion。
我试用了这些导入工具,但它们都不起作用
from firebase_admin import firestore
firebase_admin.firestore.FieldValue.arrayUnion()
AttributeError: module 'firebase_admin.firestore' has no attribute 'FieldValue'
from google.cloud import firest
请帮我解决我在flutter项目中添加了firestore的问题,它在android上运行良好,但在ios上我无法在模拟器中运行应用程序 我生成了podfile并添加了 pod 'Firebase/Core'
pod 'Firebase/Firestore' 还将平台更改为 platform :ios, '10.0' 但在终端'pod install --repo-update‘中运行此命令时出现错误 Error like this:
CocoaPods could not find compatible versions fo
我试图在Google中创建一个节点,并使用它的唯一id在中创建一个相同名称的文档。
我正在使用谷歌的PHP客户端:
我已经阅读了他们的文档:
这是我的代码:
<?php
use \Google\Cloud\Firestore\FirestoreClient;
use \Google\Cloud\Core\Timestamp;
use \Google\Cloud\Firestore\Transaction as FirestoreTransaction;
use \grptx\Firebase as FirebaseClient;
class FirestoreTest
{
p
有没有人能帮我纠正这个错误?我见过类似的回答"Firebase firestore cloud functions showing Error: Invalid use of type“undefined”as a Firestore argument",但这个答案没有帮助。
Error: Invalid use of type "function" as a Firestore argument.
at Object.customObjectError (/user_code/node_modules/firebase-admin/node_modul
在试图运行云功能时,我收到了以下错误:
TypeError: admin.firestore.doc is not a function
at exports.handler.functions.firestore.document.onCreate (/user_code/trackVote.js:10:57)
at Object.<anonymous> (/user_code/node_modules/firebase-functions/lib/cloud-functions.js:112:27)
at next (native)
at /user_code/node_mod
编辑:此时已解决,只需使用最新版本
我有最新版本的火药库测试。我得到了一个CocoaPods无法为pod“Firebase/Firestore”找到兼容的版本:
# nullsafety # not work #solved
firebase_core: ^1.5.0 #solved now ^1.6.0
firebase_auth: ^3.0.2 #solved now ^3.1.0
cloud_firestore: ^2.5.0 #solved now ^2.5.1
#solved now firebase_st
我面临以下错误后升级颤振和最新颤振软件包。
[!] CocoaPods could not find compatible versions for pod "Firebase/Firestore":
In snapshot (Podfile.lock):
Firebase/Firestore (= 8.15.0)
In Podfile:
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 3.4.5, which depends on
我正在运行一个firebase云函数和一个firebase firestore。尝试将GeoPoint实例存储到firestore时,firebase上记录了以下错误:
Error: Argument "data" is not a valid Document. Detected an object of type "GeoPoint" that doesn't match the expected instance. Please ensure that the Firestore types you are using are from the s
如何将admin.firestore.FieldValue.serverTimestamp()传递给update()方法?我想将其插入到数组中,如下所示: import * as functions from 'firebase-functions';
import * as admin from 'firebase-admin';
admin.initializeApp(functions.config().firebase);
exports.sendNote = functions.https.onCall(async(data,context)=&g
#AskFirebase
当尝试使用firebase函数执行的admin.firestore()部分时,我无法创建新文档,得到以下跟踪:
Error: Invalid use of type "undefined" as a Firestore argument.
at Object.exports.customObjectError.val [as customObjectError] (/user_code/node_modules/firebase-admin/node_modules/@google-cloud/firestore/src/validate.js
我正在使用Firebase提供的,使用Firebase和Firestore的结合,通过使用Firebase内置的存在和onDisconnect().,在Firestore中建立“存在”大多数代码都是由Firebase提供的逐字代码,但是我已经为我的数据结构定制了一些东西。我已经成功地将我的功能(下面)部署到Firebase。检查日志,我得到以下错误:
Error: Value for argument "seconds" is not a valid integer.
at Object.validateInteger (/srv/node_modules/@googl