blob: 0e8a634a4417762d9be84c5ecdf5e66835c92e44 [file] [log] [blame]
{
"tests": [
{
"description": "update-paths: ArrayUnion cannot be anywhere inside an array value",
"comment": "There cannot be an array value anywhere on the path from the document\nroot to the ArrayUnion. Firestore transforms don't support array indexing.",
"updatePaths": {
"docRefPath": "projects/projectID/databases/(default)/documents/C/d",
"fieldPaths": [
{
"field": [
"a"
]
}
],
"jsonValues": [
"[1, {\"b\": [\"ArrayUnion\", 1, 2, 3]}]"
],
"isError": true
}
}
]
}