Menu

#8 Add a 'switch' column type

Future
open
nobody
Feature (39)
2014-11-11
2013-08-19
No

The switch column type will allow to compute in function of filters.

The switch is defined by:

  • A list of columns to test
  • a string of tests: filter value filter value... defaultValue

The filters are tested from the first to the last.

Simple replacement by constants:

$1>=14 VERYGOOD $1>=10 GOOD BAD

Replacement by a column value, here how to redefine the Max:

$1>$2 $1 $2

Discussion


Log in to post a comment.

MongoDB Logo MongoDB