googleapis / googleapis/google-cloud-java

[java-firestore] FR: Add precondition support to 'set' methods

未关闭
#13,121 4 条评论 0 个 reaction 已指派 1 人 已被 @dconeybe 认领 在 GitHub 查看
api: firestore type: feature request
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
154

描述

The 'update' methods of UpdateBuilder and DocumentReference support a Precondition parameter, while 'set' methods do not, even though they use the same underlying server API, which supports preconditions.

I suggest adding precondition support to 'set' methods as well, as that would be useful for cases where you want to replace a document, unless it has been modified elsewhere since you loaded it.

I have implemented a POC of this feature, and tested that it works. I would be happy to submit a PR.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。