blob: 8554b436039a81d21deaa5a7775c0e01139f97d5 [file] [log] [blame]
{
"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"
}
]
}
}
}
}
]
}