blob: a5319e97d3129326f47471f00be0c1513bf30261 [file] [log] [blame] [edit]
{
"tests": [
{
"description": "update: ArrayUnion alone",
"comment": "If the only values in the input are ArrayUnion, then no\nupdate mask should be produced in update operation.",
"update": {
"docRefPath": "projects/projectID/databases/(default)/documents/C/d",
"jsonData": "{\"a\": [\"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"
}
]
}
}
],
"currentDocument": {
"exists": true
}
}
]
}
}
}
]
}