blob: 1a333f30cbb6f46eb705a208c557d98c32fe43b8 [file] [log] [blame]
{
"tests": [
{
"description": "update: ServerTimestamp alone",
"comment": "If the only values in the input are ServerTimestamps, then no\nupdate operation should be produced.",
"update": {
"docRefPath": "projects/projectID/databases/(default)/documents/C/d",
"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"
}
]
},
"currentDocument": {
"exists": true
}
}
]
}
}
}
]
}