blob: 3d02cbca21274ecc6795736c33f639a858a3db66 [file] [log] [blame]
{
"tests": [
{
"description": "query: EndBefore with explicit empty map",
"comment": "Cursor methods are allowed to use empty maps with EndBefore. It should result in an empty map in the query.",
"query": {
"collPath": "projects/projectID/databases/(default)/documents/C",
"clauses": [
{
"orderBy": {
"path": {
"field": [
"a"
]
},
"direction": "asc"
}
},
{
"endBefore": {
"jsonValues": [
"{}"
]
}
}
],
"query": {
"from": [
{
"collectionId": "C"
}
],
"orderBy": [
{
"field": {
"fieldPath": "a"
},
"direction": "ASCENDING"
}
],
"endAt": {
"values": [
{
"mapValue": {
"fields": {}
}
}
],
"before": true
}
}
}
}
]
}