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