Skip to content

Conversation

luuduchieu
Copy link

Currently, the adapter uses mongoose.connection for all database interactions. This approach becomes problematic when dealing with multiple databases, as it can lead to confusion and potential conflicts.

This PR handle for service with schema and modelName where it will spawn up new mongoose connection using createConnection. We will use "this.conn" on MongooseDbAdapter instead of "mongoose.connection".

@Freezystem
Copy link
Contributor

This PR conflicts with mine that add support for mongoose 7 and 8.
Unless I'm mistaken I think this case is handled in it.

Copy link
Member

@icebob icebob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the latest master version and solve the conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants