blob: d95bf0973b796fe1dd3824659a26f32632ae4cd9 [file] [log] [blame]
{
"tests": [
{
"description": "set: ServerTimestamp alone with MergeAll",
"comment": "If the only values in the input are ServerTimestamps, then no\nupdate operation should be produced.",
"set": {
"docRefPath": "projects/projectID/databases/(default)/documents/C/d",
"option": {
"all": true
},
"jsonData": "{\"a\": \"ServerTimestamp\"}",
"request": {
"database": "projects/projectID/databases/(default)",
"writes": [
{
"transform": {
"document": "projects/projectID/databases/(default)/documents/C/d",
"fieldTransforms": [
{
"fieldPath": "a",
"setToServerValue": "REQUEST_TIME"
}
]
}
}
]
}
}
}
]
}