Skip to content

Commit c1e0497

Browse files
author
Brian Chen
committed
add update transforms proto
1 parent 00e6a8d commit c1e0497

File tree

1 file changed

+7
-3
lines changed
  • firebase-firestore/src/proto/google/firestore/v1

1 file changed

+7
-3
lines changed

firebase-firestore/src/proto/google/firestore/v1/write.proto

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ message Write {
4848
string verify = 5;
4949

5050
// Applies a tranformation to a document.
51-
// At most one `transform` per document is allowed in a given request.
52-
// An `update` cannot follow a `transform` on the same document in a given
53-
// request.
5451
DocumentTransform transform = 6;
5552
}
5653

@@ -66,6 +63,13 @@ message Write {
6663
// The field paths in this mask must not contain a reserved field name.
6764
DocumentMask update_mask = 3;
6865

66+
// The transforms to perform after update.
67+
//
68+
// This field can be set only when the operation is `update`. If present, this
69+
// write is equivalent to performing `update` and `transform` to the same
70+
// document atomically and in order.
71+
repeated DocumentTransform.FieldTransform update_transforms = 7;
72+
6973
// An optional precondition on the document.
7074
//
7175
// The write will fail if this is set and not met by the target document.

0 commit comments

Comments
 (0)