I have a node js application with many files. Three of them have the following declarations respectively:
mongoose2.connect("mongodb://localhost:27017/terms");
mongoose.connect("mongodb://localhost:27017/results");
mongoose.connect("mongodb://localhost:27017/users");
The problem is that this for some reason does not work. The data are saved in database, but mongoose is confused and each time they are saved randomly among terms, results and users. Do you know why this is happening and a workaround maybe ?