# MongooseInitHook Class

Module
import { MongooseInitHook } from "@tsed/cli-plugin-mongoose"
Source/packages/cli-plugin-mongoose/src/hooks/MongooseInitHook.ts

# Overview

class MongooseInitHook {
    cliMongoose: CliMongoose;
    protected packageJson: ProjectPackageJson;
    protected rootRenderer: RootRendererService;
    protected srcRenderer: SrcRendererService;
    protected cliDockerComposeYaml: CliDockerComposeYaml;
    onExec(ctx: InitCmdContext): {
        title: string;
        task: () => Promise<void>;
    }[];
    addScripts(): void;
    addDependencies(ctx: InitCmdContext): void;
    addDevDependencies(ctx: InitCmdContext): void;
}

# Members

cliMongoose: CliMongoose

protected packageJson: ProjectPackageJson

protected rootRenderer: RootRendererService

protected srcRenderer: SrcRendererService

protected cliDockerComposeYaml: CliDockerComposeYaml

onExec(ctx: InitCmdContext): {
     title: string;
     task: () => Promise<void>;
 }[];

addScripts(): void

addDependencies(ctx: InitCmdContext): void

addDevDependencies(ctx: InitCmdContext): void