blob: 3120105f44bb54acc16fa4d76bcaa678a672fffa [file] [log] [blame]
{
"tests": [
{
"description": "set-merge: If no ordinary values in Merge, no write",
"comment": "If all the fields in the merge option have ServerTimestamp\nvalues, then no update operation is produced, only a transform.",
"set": {
"docRefPath": "projects/projectID/databases/(default)/documents/C/d",
"option": {
"fields": [
{
"field": [
"b"
]
}
]
},
"jsonData": "{\"a\": 1, \"b\": \"ServerTimestamp\"}",
"request": {
"database": "projects/projectID/databases/(default)",
"writes": [
{
"updateTransforms": [
{
"fieldPath": "b",
"setToServerValue": "REQUEST_TIME"
}
]
}
]
}
}
}
]
}