Previously, the code expected a 'mongoose connection' while internally using the mongoose module to create the schema. This caused issues with other plugins. This commit addresses the issue #138 by refactoring the code to pass the mongoose module instead of the mongoose connection. By doing so, it ensures compatibility with other plugins.
Fixes isseu #138
Previously, the code expected a 'mongoose connection' while internally using the mongoose module to create the schema. This caused issues with other plugins. This commit addresses the issue #138 by refactoring the code to pass the mongoose module instead of the mongoose connection. By doing so, it ensures compatibility with other plugins. Fixes isseu #138