blob: 3fe931394b0e8541069fa3027e6e6269a5939f19 [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": {}
}
},
{
"transform": {
"document": "projects/projectID/databases/(default)/documents/C/d",
"fieldTransforms": [
{
"fieldPath": "a",
"setToServerValue": "REQUEST_TIME"
}
]
}
}
]
}
}
}
]
}