blob: a0afd38b8f26b24e8bc24c7d5578792e416349cd [file] [log] [blame]
{
"tests": [
{
"description": "update-paths: multiple-element field path",
"comment": "The UpdatePaths or equivalent method takes a list of FieldPaths.\nEach FieldPath is a sequence of uninterpreted path components.",
"updatePaths": {
"docRefPath": "projects/projectID/databases/(default)/documents/C/d",
"fieldPaths": [
{
"field": [
"a",
"b"
]
}
],
"jsonValues": [
"1"
],
"request": {
"database": "projects/projectID/databases/(default)",
"writes": [
{
"update": {
"name": "projects/projectID/databases/(default)/documents/C/d",
"fields": {
"a": {
"mapValue": {
"fields": {
"b": {
"integerValue": "1"
}
}
}
}
}
},
"updateMask": {
"fieldPaths": [
"a.b"
]
},
"currentDocument": {
"exists": true
}
}
]
}
}
}
]
}