blob: 8e0f1f5c1a579686e832edaf8d406f48ce70a017 [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"
}
]
}
]
}
}
}
]
}