Are you an LLM? You can read better optimized documentation at /api/orm/mongoose/types/interfaces/interface-mongoose-virtual-ref-options.md for this page in Markdown format
MongooseVirtualRefOptions
@tsed/mongoose
Usage
typescript
import { MongooseVirtualRefOptions } from "@tsed/mongoose";See /packages/orm/mongoose/src/interfaces/MongooseVirtualRefOptions.ts.
Overview
ts
interface MongooseVirtualRefOptions {
ref?: string | Type<any> | (() => Type<any>);
foreignField?: string;
localField?: string;
justOne?: boolean;
count?: boolean;
options?: object;
}ref: string | Type
ts
ref?: string | Type<any> | (() => Type<any>);foreignField
ts
foreignField?: string;localField
ts
localField?: string;justOne
ts
justOne?: boolean;count
ts
count?: boolean;options
ts
options?: object;