googleapis / googleapis/google-cloud-java

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

オープン
#13,121 コメント 4 件 リアクション 0 件 担当者 1 名 @dconeybe が担当を希望しています GitHub で見る
api: firestore type: feature request
主要言語
Java
スター
2.1k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。