| { |
| "tests": [ |
| { |
| "description": "update: ServerTimestamp with dotted field", |
| "comment": "Like other uses of ServerTimestamp, the data is pruned and the\nfield does not appear in the update mask, because it is in the transform.", |
| "update": { |
| "docRefPath": "projects/projectID/databases/(default)/documents/C/d", |
| "jsonData": "{\"a.b.c\": \"ServerTimestamp\"}", |
| "request": { |
| "database": "projects/projectID/databases/(default)", |
| "writes": [ |
| { |
| "update": { |
| "name": "projects/projectID/databases/(default)/documents/C/d" |
| }, |
| "updateTransforms": [ |
| { |
| "fieldPath": "a.b.c", |
| "setToServerValue": "REQUEST_TIME" |
| } |
| ], |
| "currentDocument": { |
| "exists": true |
| } |
| } |
| ] |
| } |
| } |
| } |
| ] |
| } |