# MongoosePreHook Interface

Module
import { MongoosePreHook } from "@tsed/mongoose"
Source/packages/mongoose/src/interfaces/MongooseSchemaOptions.ts

# Overview

interface MongoosePreHook {
    method: string;
    fn: MongoosePreHookSyncCB<any> | MongoosePreHookAsyncCB<any>;
    parallel?: boolean;
    errorCb?: HookErrorCallback;
}

# Members

method: string


parallel?: boolean

errorCb?: HookErrorCallback