| { | |
| "tests": [ | |
| { | |
| "description": "query: doc snapshot with wrong collection in cursor method", | |
| "comment": "If a document snapshot is passed to a Start*/End* method, it must be in the\nsame collection as the query.", | |
| "query": { | |
| "collPath": "projects/projectID/databases/(default)/documents/C", | |
| "clauses": [ | |
| { | |
| "endBefore": { | |
| "docSnapshot": { | |
| "path": "projects/projectID/databases/(default)/documents/C2/D", | |
| "jsonData": "{\"a\": 7, \"b\": 8}" | |
| } | |
| } | |
| } | |
| ], | |
| "isError": true | |
| } | |
| } | |
| ] | |
| } |