Skip to content

MongoosePostHook

@tsed/mongoose

Usage

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

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

Overview

ts
interface MongoosePostHook<T = any> {
    method: string | RegExp;
    fn: MongoosePostHookCB<T>;
    options?: MongooseHookOptions;
}

method

ts
method: string | RegExp;

fn

ts
fn: MongoosePostHookCB<T>;

options

ts
options?: MongooseHookOptions;

Released under the MIT License.