blob: 41bc9bf1c07cdfe1e42407ec076ea575b16e122f [file] [log] [blame]
{
"tests": [
{
"description": "query: cursor methods with a document snapshot and an equality where clause",
"comment": "A Where clause using equality doesn't change the implicit orderBy clauses.",
"query": {
"collPath": "projects/projectID/databases/(default)/documents/C",
"clauses": [
{
"where": {
"path": {
"field": [
"a"
]
},
"op": "==",
"jsonValue": "3"
}
},
{
"endAt": {
"docSnapshot": {
"path": "projects/projectID/databases/(default)/documents/C/D",
"jsonData": "{\"a\": 7, \"b\": 8}"
}
}
}
],
"query": {
"from": [
{
"collectionId": "C"
}
],
"where": {
"fieldFilter": {
"field": {
"fieldPath": "a"
},
"op": "EQUAL",
"value": {
"integerValue": "3"
}
}
},
"orderBy": [
{
"field": {
"fieldPath": "__name__"
},
"direction": "ASCENDING"
}
],
"endAt": {
"values": [
{
"referenceValue": "projects/projectID/databases/(default)/documents/C/D"
}
]
}
}
}
}
]
}