interface ToObjectId {
    $toObjectId: any;
}

Properties

Properties

$toObjectId: any

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.