Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Mongo

Hierarchy

  • Mongo

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

mongoose

mongoose: __module

options

options: MongoOptions

Methods

disconnect

  • disconnect(): Promise<void>

model

  • model<T>(name: string, schema: Schema<Document<any, any, any>, Model<any, any, any>, undefined, any>): Model<T, {}, {}>
  • Type parameters

    • T: Document<any, any, any, T>

    Parameters

    • name: string
    • schema: Schema<Document<any, any, any>, Model<any, any, any>, undefined, any>

    Returns Model<T, {}, {}>

Generated using TypeDoc