googleapis / googleapis/google-cloud-java
[java-firestore] FR: Add precondition support to 'set' methods
未关闭
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 还没有评估数据。