Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Cond

Index

Properties

Properties

$cond: { if: any; then: any; else: any } | [BooleanExpression, any, any]

A ternary operator that evaluates one expression, and depending on the result, returns the value of one of the other two expressions. Accepts either three expressions in an ordered list or three named parameters.

see

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

Generated using TypeDoc