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