[
  {
    "id": "$topN baseline",
    "operator": "$topN",
    "kind": "baseline",
    "operand": "all",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "bson": "{\"v\": [{\"$numberInt\": \"3\"}, {\"$numberInt\": \"2\"}]}",
      "present": true
    }
  },
  {
    "id": "$topN input: null",
    "operator": "$topN",
    "kind": "null",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": null
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN input must be an array"
    }
  },
  {
    "id": "$topN input: missing",
    "operator": "$topN",
    "kind": "missing",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN input must be an array"
    }
  },
  {
    "id": "$topN input: zero",
    "operator": "$topN",
    "kind": "zero",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": 0
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray input must be an array"
    }
  },
  {
    "id": "$topN input: negative",
    "operator": "$topN",
    "kind": "negative",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": -2
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray input must be an array"
    }
  },
  {
    "id": "$topN input: decimal",
    "operator": "$topN",
    "kind": "decimal",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": 2.5
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray input must be an array"
    }
  },
  {
    "id": "$topN input: numeric string",
    "operator": "$topN",
    "kind": "numeric string",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": "12"
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray input must be an array"
    }
  },
  {
    "id": "$topN input: text",
    "operator": "$topN",
    "kind": "text",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": "hello"
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray input must be an array"
    }
  },
  {
    "id": "$topN input: empty string",
    "operator": "$topN",
    "kind": "empty string",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": ""
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray input must be an array"
    }
  },
  {
    "id": "$topN input: boolean",
    "operator": "$topN",
    "kind": "boolean",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": true
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray input must be an array"
    }
  },
  {
    "id": "$topN input: false",
    "operator": "$topN",
    "kind": "false",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": false
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray input must be an array"
    }
  },
  {
    "id": "$topN input: typed date",
    "operator": "$topN",
    "kind": "typed date",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": {
        "$date": "2026-01-15T15:00:00Z"
      }
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray input must be an array"
    }
  },
  {
    "id": "$topN input: decimal128",
    "operator": "$topN",
    "kind": "decimal128",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": {
        "$numberDecimal": "1.25"
      }
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray input must be an array"
    }
  },
  {
    "id": "$topN input: empty array",
    "operator": "$topN",
    "kind": "empty array",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": []
    },
    "srotax": {
      "bson": "{\"v\": []}",
      "present": true
    }
  },
  {
    "id": "$topN input: numeric array",
    "operator": "$topN",
    "kind": "numeric array",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": [
        1,
        2,
        3
      ]
    },
    "srotax": {
      "bson": "{\"v\": [{\"$numberInt\": \"3\"}, {\"$numberInt\": \"2\"}]}",
      "present": true
    }
  },
  {
    "id": "$topN input: mixed array",
    "operator": "$topN",
    "kind": "mixed array",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": [
        1,
        null,
        "x",
        3
      ]
    },
    "srotax": {
      "bson": "{\"v\": [\"x\", {\"$numberInt\": \"3\"}]}",
      "present": true
    }
  },
  {
    "id": "$topN input: nested array",
    "operator": "$topN",
    "kind": "nested array",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": [
        [
          1,
          2
        ],
        [
          3
        ]
      ]
    },
    "srotax": {
      "bson": "{\"v\": [[{\"$numberInt\": \"3\"}], [{\"$numberInt\": \"1\"}, {\"$numberInt\": \"2\"}]]}",
      "present": true
    }
  },
  {
    "id": "$topN input: empty object",
    "operator": "$topN",
    "kind": "empty object",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": {}
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray input must be an array"
    }
  },
  {
    "id": "$topN input: object",
    "operator": "$topN",
    "kind": "object",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": {
        "x": 1
      }
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray input must be an array"
    }
  },
  {
    "id": "$topN input: ISO date string",
    "operator": "$topN",
    "kind": "ISO date string",
    "operand": "input",
    "expression": {
      "$topN": {
        "input": "$probe",
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {
      "probe": "2026-01-15T15:00:00Z"
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray input must be an array"
    }
  },
  {
    "id": "$topN sortBy: null",
    "operator": "$topN",
    "kind": "null",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": null,
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: zero",
    "operator": "$topN",
    "kind": "zero",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": 0,
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: negative",
    "operator": "$topN",
    "kind": "negative",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -2,
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: decimal",
    "operator": "$topN",
    "kind": "decimal",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": 2.5,
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: numeric string",
    "operator": "$topN",
    "kind": "numeric string",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": "12",
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: text",
    "operator": "$topN",
    "kind": "text",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": "hello",
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: empty string",
    "operator": "$topN",
    "kind": "empty string",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": "",
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: boolean",
    "operator": "$topN",
    "kind": "boolean",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": true,
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: false",
    "operator": "$topN",
    "kind": "false",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": false,
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: typed date",
    "operator": "$topN",
    "kind": "typed date",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": {
          "$date": "2026-01-15T15:00:00Z"
        },
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: decimal128",
    "operator": "$topN",
    "kind": "decimal128",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": {
          "$numberDecimal": "1.25"
        },
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: empty array",
    "operator": "$topN",
    "kind": "empty array",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": [],
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: numeric array",
    "operator": "$topN",
    "kind": "numeric array",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": [
          1,
          2,
          3
        ],
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: mixed array",
    "operator": "$topN",
    "kind": "mixed array",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": [
          1,
          null,
          "x",
          3
        ],
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: nested array",
    "operator": "$topN",
    "kind": "nested array",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": [
          [
            1,
            2
          ],
          [
            3
          ]
        ],
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN sortBy: empty object",
    "operator": "$topN",
    "kind": "empty object",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": {},
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sortBy must not be empty"
    }
  },
  {
    "id": "$topN sortBy: object",
    "operator": "$topN",
    "kind": "object",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": {
          "x": 1
        },
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "bson": "{\"v\": [{\"$numberInt\": \"3\"}, {\"$numberInt\": \"1\"}]}",
      "present": true
    }
  },
  {
    "id": "$topN sortBy: ISO date string",
    "operator": "$topN",
    "kind": "ISO date string",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": "2026-01-15T15:00:00Z",
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$sortArray sort direction must be 1 or -1"
    }
  },
  {
    "id": "$topN n: null",
    "operator": "$topN",
    "kind": "null",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": null
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: missing",
    "operator": "$topN",
    "kind": "missing",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: zero",
    "operator": "$topN",
    "kind": "zero",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": 0
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: negative",
    "operator": "$topN",
    "kind": "negative",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": -2
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: decimal",
    "operator": "$topN",
    "kind": "decimal",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": 2.5
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: numeric string",
    "operator": "$topN",
    "kind": "numeric string",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": "12"
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: text",
    "operator": "$topN",
    "kind": "text",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": "hello"
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: empty string",
    "operator": "$topN",
    "kind": "empty string",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": ""
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: boolean",
    "operator": "$topN",
    "kind": "boolean",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": true
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: false",
    "operator": "$topN",
    "kind": "false",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": false
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: typed date",
    "operator": "$topN",
    "kind": "typed date",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": {
        "$date": "2026-01-15T15:00:00Z"
      }
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: decimal128",
    "operator": "$topN",
    "kind": "decimal128",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": {
        "$numberDecimal": "1.25"
      }
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: empty array",
    "operator": "$topN",
    "kind": "empty array",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": []
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: numeric array",
    "operator": "$topN",
    "kind": "numeric array",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": [
        1,
        2,
        3
      ]
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: mixed array",
    "operator": "$topN",
    "kind": "mixed array",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": [
        1,
        null,
        "x",
        3
      ]
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: nested array",
    "operator": "$topN",
    "kind": "nested array",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": [
        [
          1,
          2
        ],
        [
          3
        ]
      ]
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: empty object",
    "operator": "$topN",
    "kind": "empty object",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": {}
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: object",
    "operator": "$topN",
    "kind": "object",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": {
        "x": 1
      }
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN n: ISO date string",
    "operator": "$topN",
    "kind": "ISO date string",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1,
        "n": "$probe"
      }
    },
    "input": {
      "probe": "2026-01-15T15:00:00Z"
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$firstN n must be a positive 64-bit integer"
    }
  },
  {
    "id": "$topN omit input",
    "operator": "$topN",
    "kind": "omitted named argument",
    "operand": "input",
    "expression": {
      "$topN": {
        "sortBy": -1,
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$topN requires input, sortBy and n"
    }
  },
  {
    "id": "$topN omit sortBy",
    "operator": "$topN",
    "kind": "omitted named argument",
    "operand": "sortBy",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "n": 2
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$topN requires input, sortBy and n"
    }
  },
  {
    "id": "$topN omit n",
    "operator": "$topN",
    "kind": "omitted named argument",
    "operand": "n",
    "expression": {
      "$topN": {
        "input": [
          3,
          1,
          2
        ],
        "sortBy": -1
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$topN requires input, sortBy and n"
    }
  },
  {
    "id": "$topN empty arguments",
    "operator": "$topN",
    "kind": "empty arguments",
    "operand": "all",
    "expression": {
      "$topN": []
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$topN requires input, sortBy and n"
    }
  },
  {
    "id": "$topN unknown option",
    "operator": "$topN",
    "kind": "unknown option",
    "operand": "all",
    "expression": {
      "$topN": {
        "unexpected": 1
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$topN requires input, sortBy and n"
    }
  }
]
