import { type mongoose } from "https://deno.land/x/mongoose@7.8.2/types/expressions.d.ts";
const { ToObjectId } = mongoose.Expression;
Properties
$toObjectId: Expression
Converts a value to an ObjectId(). If the value cannot be converted to an ObjectId, $toObjectId errors. If the value is null or missing, $toObjectId returns null.