Skip to main content

Posts

Showing posts with the label mongodb switch expression

mongodb switch expression

Syntax:     {$project: {         columnName: {             $switch: {                 branches: [                     {                         case: <your-expression>,                         then: <your-expression>                     }                      ...