| { |
| "tests": [ |
| { |
| "description": "update-paths: ServerTimestamp alone", |
| "comment": "If the only values in the input are ServerTimestamps, then no\nupdate operation should be produced.", |
| "updatePaths": { |
| "docRefPath": "projects/projectID/databases/(default)/documents/C/d", |
| "fieldPaths": [ |
| { |
| "field": [ |
| "a" |
| ] |
| } |
| ], |
| "jsonValues": [ |
| "\"ServerTimestamp\"" |
| ], |
| "request": { |
| "database": "projects/projectID/databases/(default)", |
| "writes": [ |
| { |
| "transform": { |
| "document": "projects/projectID/databases/(default)/documents/C/d", |
| "fieldTransforms": [ |
| { |
| "fieldPath": "a", |
| "setToServerValue": "REQUEST_TIME" |
| } |
| ] |
| }, |
| "currentDocument": { |
| "exists": true |
| } |
| } |
| ] |
| } |
| } |
| } |
| ] |
| } |