Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mongoose/types/expressions.d.ts>mongoose.Expression.IfNull

MongoDB object modeling designed to work in an asynchronous environment.
Go to Latest
interface mongoose.Expression.IfNull
import { type mongoose } from "https://deno.land/x/mongoose@6.12.9/types/expressions.d.ts";
const { IfNull } = mongoose.Expression;

Properties

$ifNull: Expression[]

Returns either the non-null result of the first expression or the result of the second expression if the first expression results in a null result. Null result encompasses instances of undefined values or missing fields. Accepts two expressions as arguments. The result of the second expression can be null.