在对应用程序中的用户进行身份验证后,我想创建一个云函数,该函数在我的firestore userProfile集合中为用户创建一个用户配置文件文档。这是我用于云函数的整个index.js文件
// The Cloud Functions for Firebase SDK to create Cloud Functions an
我已经创建了一个简单的云函数,在orders集合中创建任何新文档时都会触发该函数。之后,我想遍历"test“集合,并将每个文档的名称更新为"Harry”。但更新数据库需要5分钟或更长时间。代码: import * as functions from "firebase-functions";
import * as admin from