Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Integral

Index

Properties

Properties

$integral: { input: NumberExpression; unit?: DateUnit }

Returns the approximation of the area under a curve, which is calculated using the trapezoidal rule where each set of adjacent documents form a trapezoid using the:

version

5.0

see

https://docs.mongodb.com/manual/reference/operator/aggregation/integral/#mongodb-expression-exp.-integral

Type declaration

  • input: NumberExpression

    Specifies the expression to evaluate. You must provide an expression that returns a number.

  • Optional unit?: DateUnit

    A string that specifies the time unit.

Generated using TypeDoc