blob: 81e1e9771ab7b7f7bdd903b512903c6addbb8ac9 [file] [log] [blame]
{
"tests": [
{
"description": "update-paths: ArrayUnion alone",
"comment": "If the only values in the input are ArrayUnion, then no\nupdate operation 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": [
{
"transform": {
"document": "projects/projectID/databases/(default)/documents/C/d",
"fieldTransforms": [
{
"fieldPath": "a",
"appendMissingElements": {
"values": [
{
"integerValue": "1"
},
{
"integerValue": "2"
},
{
"integerValue": "3"
}
]
}
}
]
},
"currentDocument": {
"exists": true
}
}
]
}
}
}
]
}