blob: 9b9662e49552f992bd4339bdef12a298fdc9216f [file] [log] [blame] [edit]
{
"tests": [
{
"description": "update-paths: ArrayRemove alone",
"comment": "If the only values in the input are ArrayRemove, then no\nupdate mask should be produced in update operation.",
"updatePaths": {
"docRefPath": "projects/projectID/databases/(default)/documents/C/d",
"fieldPaths": [
{
"field": [
"a"
]
}
],
"jsonValues": [
"[\"ArrayRemove\", 1, 2, 3]"
],
"request": {
"database": "projects/projectID/databases/(default)",
"writes": [
{
"update": {
"name": "projects/projectID/databases/(default)/documents/C/d"
},
"updateMask": {},
"updateTransforms": [
{
"fieldPath": "a",
"removeAllFromArray": {
"values": [
{
"integerValue": "1"
},
{
"integerValue": "2"
},
{
"integerValue": "3"
}
]
}
}
],
"currentDocument": {
"exists": true
}
}
]
}
}
}
]
}