blob: 7cfde432a3c6e994fd139f879158ff0d291f6816 [file] [log] [blame]
{
"tests": [
{
"description": "create: ServerTimestamp alone",
"comment": "If the only values in the input are ServerTimestamps, then no\nupdate mask should be produced.",
"create": {
"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"
},
"updateMask": {},
"updateTransforms": [
{
"fieldPath": "a",
"setToServerValue": "REQUEST_TIME"
}
],
"currentDocument": {
"exists": false
}
}
]
}
}
}
]
}