import { type mongoose } from "https://deno.land/x/mongoose@8.6.4/types/expressions.d.ts";
const { Cond } = mongoose.Expression;
Properties
$cond: { if: Expression; then: AnyExpression; else: AnyExpression; } | [BooleanExpression, AnyExpression, AnyExpression]
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.