import { type mongoose } from "https://deno.land/x/mongoose@7.8.2/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.