mongoose - Error occured: MongoError: driver is incompatible with this server version -


var mongoose = require('mongoose'),     locationmodel = mongoose.model('location')  exports.createlocation = function(req, res, next) {   var locationmodel = new locationmodel(req.body);    locationmodel.save(function(err, article) {         if (err) {             res.status(200);             res.json({                 type: false,                 data: "error occured: " + err             })         } else {             res.json({                 type: true,                 data: article             })         }     }) } 

while trying save using model file getting driver incompatible server version.

install latest version of mongoose & update dependencies in package.json.

latest version of mongoose here.

at npm repository of package dependencies of mongodb described.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -