| { |
| "tests": [ |
| { |
| "description": "query: cursor methods with a document snapshot", |
| "comment": "When a document snapshot is used, the client appends a __name__ order-by clause.", |
| "query": { |
| "collPath": "projects/projectID/databases/(default)/documents/C", |
| "clauses": [ |
| { |
| "startAt": { |
| "docSnapshot": { |
| "path": "projects/projectID/databases/(default)/documents/C/D", |
| "jsonData": "{\"a\": 7, \"b\": 8}" |
| } |
| } |
| } |
| ], |
| "query": { |
| "from": [ |
| { |
| "collectionId": "C" |
| } |
| ], |
| "orderBy": [ |
| { |
| "field": { |
| "fieldPath": "__name__" |
| }, |
| "direction": "ASCENDING" |
| } |
| ], |
| "startAt": { |
| "values": [ |
| { |
| "referenceValue": "projects/projectID/databases/(default)/documents/C/D" |
| } |
| ], |
| "before": true |
| } |
| } |
| } |
| } |
| ] |
| } |