blob: 2f3faa7846c6baff7f7e93808575c43931f30276 [file] [log] [blame]
{
"tests": [
{
"description": "update-paths: complex",
"comment": "A call to a write method with complicated input data.",
"updatePaths": {
"docRefPath": "projects/projectID/databases/(default)/documents/C/d",
"fieldPaths": [
{
"field": [
"a"
]
},
{
"field": [
"b"
]
}
],
"jsonValues": [
"[1, 2.5]",
"{\"c\": [\"three\", {\"d\": true}]}"
],
"request": {
"database": "projects/projectID/databases/(default)",
"writes": [
{
"update": {
"name": "projects/projectID/databases/(default)/documents/C/d",
"fields": {
"a": {
"arrayValue": {
"values": [
{
"integerValue": "1"
},
{
"doubleValue": 2.5
}
]
}
},
"b": {
"mapValue": {
"fields": {
"c": {
"arrayValue": {
"values": [
{
"stringValue": "three"
},
{
"mapValue": {
"fields": {
"d": {
"booleanValue": true
}
}
}
}
]
}
}
}
}
}
}
},
"updateMask": {
"fieldPaths": [
"a",
"b"
]
},
"currentDocument": {
"exists": true
}
}
]
}
}
}
]
}