import { type mongoose } from "https://deno.land/x/mongoose@8.6.4/types/expressions.d.ts";
const { Switch } = mongoose.Expression;
Properties
$switch: { branches: { case: Expression; then: Expression; }[]; default: Expression; }
Evaluates a series of case expressions. When it finds an expression which evaluates to true, $switch executes a specified expression and breaks out of the control flow.