是否可以使用python firebase admin sdk将数据附加到云firestore数据库中的子集合?如果是这样的话,我错过了什么? 我正在尝试将数据附加到位于googles云firestore中的特定文档的子集中-而不是实时数据库。我已经做了大量的研究,到目前为止,这是最流行的资源:add data to firestore,它并没有明确表示这是不可能的 我能够创建文档、阅读文档等,但在没有获得整个文档的情况下,我似乎无法追加或访问子集合 我的代码流程如下: import time
import json
import firebase_admin
from firebase_a
我正在尝试更新云firestore中预先存在的信息。以下是我的规则: rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
//match logged in user doc in users collection
match /users/{userId} {
allow read, write, update: if request.auth.uid == userId;
allow create:
我正在尝试部署一个云函数,每当在我的Firestore中创建一个新文档时,它就会更新Algolia搜索索引。一切看起来都很好,但在最后,它出错了。我已经看过这些文档,感觉语法是正确的,所以我不知道现在该做什么。云函数日志没有指向任何东西,只是重复了我在下面收到的错误
错误消息:
=== Deploying to 'test-ffdbb'...
i deploying functions
i functions: ensuring necessary APIs are enabled...
i runtimeconfig: ensuring necessary APIs
我正在为我的应用程序使用React本机,并且我正在执行一个批处理事务,在我设置的第二批程序上失败:
let rriNshpiUserCollection = await firestore().collection('myDoc').doc(login_uid);
let privateDoc = await firestore().collection('myDoc').doc(login_uid).collection('private');
let batch = firestore().batch();
实际上我是react的新手,我正在尝试创建一个事件应用程序,用户可以在其中加入事件这里是用于加入事件的代码
export const JoinEvent = (id) => {
return async dispatch => {
let data = await firebase.firestore().collection('Events').doc(id).get()
let tmpArray = data.data()
let currentUser = firebase.auth().currentUser
let ne