{ "tests": [ { "description": "set-merge: If no ordinary values in Merge, no write", "comment": "If all the fields in the merge option have ServerTimestamp\nvalues, then no update mask is produced, only an update transform.", "set": { "docRefPath": "projects/projectID/databases/(default)/documents/C/d", "option": { "fields": [ { "field": [ "b" ] } ] }, "jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\"}", "request": { "database": "projects/projectID/databases/(default)", "writes": [ { "update": { "name": "projects/projectID/databases/(default)/documents/C/d" }, "updateMask": {}, "updateTransforms": [ { "fieldPath": "b", "setToServerValue": "REQUEST_TIME" } ] } ] } } } ] }