Skip to content

Commit faaac06

Browse files
author
Brian Chen
committed
add update_transform protos
1 parent 3a19f9e commit faaac06

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/firestore/src/protos/firestore_proto_api.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ export declare namespace firestoreV1ApiClientInterfaces {
391391
verify?: string;
392392
transform?: DocumentTransform;
393393
updateMask?: DocumentMask;
394+
updateTransform?: FieldTransform[];
394395
currentDocument?: Precondition;
395396
}
396397
interface WriteRequest {

packages/firestore/src/protos/google/firestore/v1/write.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ message Write {
6666
// The field paths in this mask must not contain a reserved field name.
6767
DocumentMask update_mask = 3;
6868

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

0 commit comments

Comments
 (0)