Properties
mongoose
mongoose: __module
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, {}, {}>