blob: 089cff93bdef717a9f53eee1eef953a0701f1d34 [file] [log] [blame]
{
"tests": [
{
"description": "query: StartAfter/EndAt with 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"
}
},
{
"startAfter": {
"jsonValues": [
"7"
]
}
},
{
"endAt": {
"jsonValues": [
"9"
]
}
}
],
"query": {
"from": [
{
"collectionId": "C"
}
],
"orderBy": [
{
"field": {
"fieldPath": "a"
},
"direction": "ASCENDING"
}
],
"startAt": {
"values": [
{
"integerValue": "7"
}
]
},
"endAt": {
"values": [
{
"integerValue": "9"
}
]
}
}
}
}
]
}