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