Closed teckays closed 7 years ago
+1
that is because you're calling "seeder.populateModels(data);" without a [callback] function. The example code is doing that as well. To fix it, change the previous line of code to
seeder.populateModels(data, function(){
//disconnect seeder from mongodb
});
note that seeder does not have a proper function for disconnecting!
Executing the seed script it successfully inserts the seeded entry, however, it throws this error
stack: