Type Alias ExplicitAggregationField

ExplicitAggregationField:
    | { verb: "count" }
    | { field: string; verb: "sum" }
    | { field: string; verb: "average" }

Definition for an aggregation query field

Type declaration

  • { verb: "count" }
    • verb: "count"

      The action to perform on the field

  • { field: string; verb: "sum" }
    • field: string

      Field to compute the verb across the queried documents

    • verb: "sum"

      The action to perform on the field

  • { field: string; verb: "average" }
    • field: string

      Field to compute the verb across the queried documents

    • verb: "average"

      The action to perform on the field