MongooseVirtualRefOptions
@tsed/mongoose
Usage
typescript
import { MongooseVirtualRefOptions } from "@tsed/mongoose";
See /packages/orm/mongoose/src/types/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;