Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mongoose/types/index.d.ts>mongoose.VirtualType#get

MongoDB object modeling designed to work in an asynchronous environment.
Go to Latest
method mongoose.VirtualType.prototype.get
import { mongoose } from "https://deno.land/x/mongoose@8.6.3/types/index.d.ts";
const { VirtualType } = mongoose;

Adds a custom getter to this virtual.

Type Parameters

optional
T = HydratedDocType

Parameters

fn: (
this: T,
value: any,
virtualType: VirtualType<T>,
doc: T,
) => any