blob: 4a46b2f789d5e733d6573a67e9e9058d94422b34 [file] [log] [blame]
{
"tests": [
{
"description": "query: cursor methods, last one wins",
"comment": "When multiple Start* or End* calls occur, the values of the last one are used.",
"query": {
"collPath": "projects/projectID/databases/(default)/documents/C",
"clauses": [
{
"orderBy": {
"path": {
"field": [
"a"
]
},
"direction": "asc"
}
},
{
"startAfter": {
"jsonValues": [
"1"
]
}
},
{
"startAt": {
"jsonValues": [
"2"
]
}
},
{
"endAt": {
"jsonValues": [
"3"
]
}
},
{
"endBefore": {
"jsonValues": [
"4"
]
}
}
],
"query": {
"from": [
{
"collectionId": "C"
}
],
"orderBy": [
{
"field": {
"fieldPath": "a"
},
"direction": "ASCENDING"
}
],
"startAt": {
"values": [
{
"integerValue": "2"
}
],
"before": true
},
"endAt": {
"values": [
{
"integerValue": "4"
}
],
"before": true
}
}
}
}
]
}