【发布时间】:2023-03-11 12:32:02
【问题描述】:
shard_ref.update("count", firebase.firestore.FieldValue.increment(1));
我正在寻找在 python 中增加和更新的方法,我什至不能用 python 中的预定义值来更新它。该文档没有指定任何 python 示例。
我正在像这样使用firebase_admin sdk,
import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
更多检查文档https://firebase.google.com/docs/firestore/solutions/counters
【问题讨论】:
-
功能请求在
open状态这里:github.com/googleapis/google-cloud-python/issues/7533
标签: firebase google-cloud-firestore google-cloud-functions