You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a problem installing plugin to a Schema when I use it with NestJs/Mongoose. The only instance that I can access is the Connection mongoose class and it's not fully compatible with the mongoose option needed by the plugin.
I use an ugly way to solve this in my project:
Can you split those 2 in options or use require mongoose for static Schema calls and ask only for connection instance?
Both options will not generate breaking changes.
I can make a PR if you want.
PS: a typescript interface with all new document methods will be cool
The text was updated successfully, but these errors were encountered:
Year and a half later, this helped me. Thank you. I think this project is dead though, considering 2 years of no updates and 12 PR's that haven't been merged.
I found a problem installing plugin to a Schema when I use it with NestJs/Mongoose. The only instance that I can access is the Connection mongoose class and it's not fully compatible with the mongoose option needed by the plugin.
I use an ugly way to solve this in my project:
Can you split those 2 in options or use require mongoose for static Schema calls and ask only for connection instance?
Both options will not generate breaking changes.
I can make a PR if you want.
PS: a typescript interface with all new document methods will be cool
The text was updated successfully, but these errors were encountered: