blob: 788588f76424651091e848def79333032d0801b2 [file] [log] [blame]
{
"tests": [
{
"description": "query: StartAt with explicit empty map",
"comment": "Cursor methods are allowed to use empty maps with StartAt. 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"
}
},
{
"startAt": {
"jsonValues": [
"{}"
]
}
}
],
"query": {
"from": [
{
"collectionId": "C"
}
],
"orderBy": [
{
"field": {
"fieldPath": "a"
},
"direction": "ASCENDING"
}
],
"startAt": {
"values": [
{
"mapValue": {
"fields": {}
}
}
],
"before": true
}
}
}
}
]
}