| { |
| "tests": [ |
| { |
| "description": "query: Start/End with two values", |
| "comment": "Cursor methods take the same number of values as there are OrderBy clauses.", |
| "query": { |
| "collPath": "projects/projectID/databases/(default)/documents/C", |
| "clauses": [ |
| { |
| "orderBy": { |
| "path": { |
| "field": [ |
| "a" |
| ] |
| }, |
| "direction": "asc" |
| } |
| }, |
| { |
| "orderBy": { |
| "path": { |
| "field": [ |
| "b" |
| ] |
| }, |
| "direction": "desc" |
| } |
| }, |
| { |
| "startAt": { |
| "jsonValues": [ |
| "7", |
| "8" |
| ] |
| } |
| }, |
| { |
| "endAt": { |
| "jsonValues": [ |
| "9", |
| "10" |
| ] |
| } |
| } |
| ], |
| "query": { |
| "from": [ |
| { |
| "collectionId": "C" |
| } |
| ], |
| "orderBy": [ |
| { |
| "field": { |
| "fieldPath": "a" |
| }, |
| "direction": "ASCENDING" |
| }, |
| { |
| "field": { |
| "fieldPath": "b" |
| }, |
| "direction": "DESCENDING" |
| } |
| ], |
| "startAt": { |
| "values": [ |
| { |
| "integerValue": "7" |
| }, |
| { |
| "integerValue": "8" |
| } |
| ], |
| "before": true |
| }, |
| "endAt": { |
| "values": [ |
| { |
| "integerValue": "9" |
| }, |
| { |
| "integerValue": "10" |
| } |
| ] |
| } |
| } |
| } |
| } |
| ] |
| } |