Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error with Fawn.init in mongoose ^6.0.5 #89

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

olalekanteeblaze
Copy link

There's an issue with initializing Fawn in mongoose ^6.0.5. This comes from the isMongoose function. the modelSchemas object of the mongoose instance has been replaced with Schema from the recent version of mongoose. So this leads to the function returning false even when the mongoose instance is valid

@EmmanDizon
Copy link

Thankyou for this "&& (obj.modelSchemas || obj.Schema)"
it work for me :)

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.

2 participants