blob: 8ce730e840ad819917bfc392dfc38a764be39e12 [file] [log] [blame]
{
"tests": [
{
"description": "set-merge: Merge with a field",
"comment": "Fields in the input data but not in a merge option are pruned.",
"set": {
"docRefPath": "projects/projectID/databases/(default)/documents/C/d",
"option": {
"fields": [
{
"field": [
"a"
]
}
]
},
"jsonData": "{\"a\": 1, \"b\": 2}",
"request": {
"database": "projects/projectID/databases/(default)",
"writes": [
{
"update": {
"name": "projects/projectID/databases/(default)/documents/C/d",
"fields": {
"a": {
"integerValue": "1"
}
}
},
"updateMask": {
"fieldPaths": [
"a"
]
}
}
]
}
}
}
]
}