Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Derivative

Index

Properties

Properties

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

Returns the average rate of change within the specified window, which is calculated using the:

version

5.0

see

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

Type declaration

  • input: NumberExpression

    Specifies the expression to evaluate. The expression must evaluate to a number.

  • Optional unit?: DateUnit

    A string that specifies the time unit.

Generated using TypeDoc