import { mongoose } from "https://deno.land/x/mongoose@7.8.2/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.