google-cloud-firestore - 在 Firestore 服务器库上写入后读取
问题描述
Firestore 文档https://firebase.google.com/docs/firestore/transaction-data-contention说:
只有服务器客户端库支持在写操作后进行读操作的事务。
但是,在使用https://www.npmjs.com/package/@google-cloud/firestore 4.7.2写入后阅读时,我得到:
错误:Firestore 事务要求在所有写入之前执行所有读取。在 Transaction.get (/workspace/node_modules/@google-cloud/firestore/build/src/transaction.js:76:19)
是否真的支持在服务器库上写入后读取?
解决方案
推荐阅读
- html - html表单输入模式选项的问题
- node.js - 为什么 LeetCode 扩展无法在 ubuntu 16.04 的 Visual Studio Code 中运行?
- angular - 从 Angular 客户端调用 API 时出现身份服务器 CORS 错误
- arrays - 将变量分配给函数中的类型,我怎样才能让类型本身成为描述变量输出类型的输入?: 斯威夫特 5
- firebase - 如何在华为安卓消息服务中初始化App
- visual-studio-code - 通过 vsix 文件安装 vscode 扩展,无需 CLI 命令
- mongodb - MongoDB 数据库正在随机重置
- python-3.x - Python ModuleNotFindError 即使安装了模块
- flutter - 我想在颤动播放视频时计算当前的网络下载速度
- kubernetes - 如何运行具有不同配置设置的副本