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