File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
packages/firestore/src/protos Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -391,6 +391,7 @@ export declare namespace firestoreV1ApiClientInterfaces {
391
391
verify ?: string ;
392
392
transform ?: DocumentTransform ;
393
393
updateMask ?: DocumentMask ;
394
+ updateTransforms ?: FieldTransform [ ] ;
394
395
currentDocument ?: Precondition ;
395
396
}
396
397
interface WriteRequest {
Original file line number Diff line number Diff line change @@ -47,10 +47,7 @@ message Write {
47
47
// This only requires read access to the document.
48
48
string verify = 5 ;
49
49
50
- // 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.
50
+ // Applies a transformation to a document.
54
51
DocumentTransform transform = 6 ;
55
52
}
56
53
@@ -66,6 +63,13 @@ message Write {
66
63
// The field paths in this mask must not contain a reserved field name.
67
64
DocumentMask update_mask = 3 ;
68
65
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
+
69
73
// An optional precondition on the document.
70
74
//
71
75
// The write will fail if this is set and not met by the target document.
You can’t perform that action at this time.
0 commit comments