Skip to content

MongooseModelOptions

@tsed/mongoose

Usage

typescript
import { MongooseModelOptions } from "@tsed/mongoose";

See /packages/orm/mongoose/src/types/interfaces/MongooseModelOptions.ts.

Overview

ts
interface MongooseModelOptions extends MongooseSchemaOptions {
    name?: string;
    connection?: string;
    collection?: string;
    overwriteModels?: boolean;
}

name

ts
name?: string;

connection

ts
connection?: string;

collection

ts
collection?: string;

overwriteModels

ts
overwriteModels?: boolean;

Released under the MIT License.