- getModel<T, TModel>(registry, modelName): TModel & WithAggregationMethod
Type Parameters
- T = {}
- TModel extends Model<T, {}, {}, {}, IfAny<T, any, Document<unknown, {}, T> & Require_id<T>>, any> = Model<T, {}, {}, {}, IfAny<T, any, Document<unknown, {}, T> & Require_id<T>>, any>
Parameters
- registry: Registry
- modelName: string
- getModel<T, TModel>(registry, managerName, modelName): TModel & WithAggregationMethod
Type Parameters
- T = {}
- TModel extends Model<T, {}, {}, {}, IfAny<T, any, Document<unknown, {}, T> & Require_id<T>>, any> = Model<T, {}, {}, {}, IfAny<T, any, Document<unknown, {}, T> & Require_id<T>>, any>
Parameters
- registry: Registry
- managerName: string
- modelName: string