blob: 76592a49c6e04e66122dabf442fca71ac8f38a76 [file] [log] [blame]
{
"tests": [
{
"description": "update: ServerTimestamp alone",
"comment": "If the only values in the input are ServerTimestamps, then no\nupdate mask should be produced in update operation.",
"update": {
"docRefPath": "projects/projectID/databases/(default)/documents/C/d",
"jsonData": "{\"a\": \"ServerTimestamp\"}",
"request": {
"database": "projects/projectID/databases/(default)",
"writes": [
{
"update": {
"name": "projects/projectID/databases/(default)/documents/C/d"
},
"updateTransforms": [
{
"fieldPath": "a",
"setToServerValue": "REQUEST_TIME"
}
],
"currentDocument": {
"exists": true
}
}
]
}
}
}
]
}