# MongooseVirtualRefOptions Interface

Module
import { MongooseVirtualRefOptions } from "@tsed/mongoose"
Source/packages/mongoose/src/decorators/virtualRef.ts

# Overview

interface MongooseVirtualRefOptions {
    /**
     * @deprecated Use ref instead.
     */
    type?: string | Type<any>;
    ref?: string | Type<any>;
    foreignField?: string;
    localField?: string;
    justOne?: boolean;
    options?: object;
}

# Members

type?: string | Type<any>;

ref?: string | Type<any>;

foreignField?: string;

localField?: string;

justOne?: boolean;

options?: object;