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

Mongoose instance invalid !!! #94

Open
kany187 opened this issue Jun 20, 2022 · 2 comments
Open

Mongoose instance invalid !!! #94

kany187 opened this issue Jun 20, 2022 · 2 comments

Comments

@kany187
Copy link

kany187 commented Jun 20, 2022

Fawn is not working well with the new version of Mongoose (6.0.4). Getting error when using "Fawn.init(mongoose)". The new version of Mongoose implemented severals changes.

@swagmadou
Copy link

use this package --mongoose-transactions

@shriyansnaik
Copy link

As per the documentation, try using

var Fawn = require("fawn"); 
Fawn.init("mongodb://127.0.0.1:27017/yourDbName");

or

var mongoose = require("mongoose");
mongoose.connect("mongodb://127.0.0.1:27017/testDB");

Fawn.init(mongoose);

Fawn is not working well with the new version of Mongoose (6.0.4). Getting error when using "Fawn.init(mongoose)". The new version of Mongoose implemented severals changes.

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

No branches or pull requests

3 participants