Skip to content

MongooseSchemaOptions

@tsed/mongoose

Usage

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

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

Overview

ts
interface MongooseSchemaOptions {
    schemaOptions?: SchemaOptions;
    plugins?: MongoosePluginOptions[];
    indexes?: MongooseIndexOptions[];
    pre?: MongoosePreHook[];
    post?: MongoosePostHook[];
}

schemaOptions

ts
schemaOptions?: SchemaOptions;

plugins

ts
plugins?: MongoosePluginOptions[];

indexes

ts
indexes?: MongooseIndexOptions[];

pre

ts
pre?: MongoosePreHook[];

post

ts
post?: MongoosePostHook[];

Released under the MIT License.