import { mongoose } from "https://deno.land/x/mongoose@6.13.4/types/index.d.ts";
const { VirtualType } = mongoose;
Methods
applyGetters(value: any, doc: Document): any
Applies getters to value
.
applySetters(value: any, doc: Document): any
Applies setters to value
.
get<T = HydratedDocType>(fn: () => any): this
Adds a custom getter to this virtual.
set<T = HydratedDocType>(fn: () => void): this
Adds a custom setter to this virtual.