# MongooseService Service

Module
import { MongooseService } from "@tsed/mongoose"
Source/packages/mongoose/src/services/MongooseService.ts

# Overview

class MongooseService {
    connect(id: string, url: string, connectionOptions: Mongoose.ConnectionOptions): Promise<any>;
    get(id?: string): Mongoose.Mongoose | undefined;
    has(id?: string): boolean;
    closeConnections(): Promise<void>;
}

# Members

connect(id: string, url: string, connectionOptions: Mongoose.ConnectionOptions): Promise<any>

get(id?: string): Mongoose.Mongoose | undefined

has(id?: string): boolean

closeConnections(): Promise<void>