blob: fdea56cc9a1a5e4449c83fb6ee97ba3818ee43ce [file] [log] [blame]
{
"tests": [
{
"description": "set: ServerTimestamp alone",
"comment": "If the only values in the input are ServerTimestamps, then\nan update operation with an empty map should be produced.",
"set": {
"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",
"fields": {}
}
},
{
"updateTransforms": [
{
"fieldPath": "a",
"setToServerValue": "REQUEST_TIME"
}
]
}
]
}
}
}
]
}