kpfromer / nestjs-typegoose

Typegoose with NestJS
https://kpfromer.github.io/nestjs-typegoose/
MIT License
291 stars 73 forks source link

Mongoose 6.x Support Issue - no exported member 'ConnectionOptions' #452

Open alexreal1314 opened 3 years ago

alexreal1314 commented 3 years ago

We are trying to upgrade to mongosoe 6.x and encountered a problem with the package, It is importing an old interface which no longer exists. import { ConnectionOptions } from 'mongoose'; export interface TypegooseConnectionOptions extends ConnectionOptions { connectionName?: string; }

in the file typegoose-options.interface.d.ts

Should be updated to ConnectOptions. Can this be fixed or should I open a PR for this?

bmxpiku commented 3 years ago

@alexreal1314 see 65 pull requests and no action on them, and I guess now you could fork updated version that was done in other opened issue https://github.com/kpfromer/nestjs-typegoose/issues/433