Skip to content

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