mongoose_connection event function (1) 썸네일형 리스트형 [nodejs] mongoose 커넥션 이벤트 함수 // CONNECTION EVENTS // When successfully connected mongoose.connection.on('connected', function () { console.log('Mongoose default connection open to ' + dbURI); }); // If the connection throws an error mongoose.connection.on('error',function (err) { console.log('Mongoose default connection error: ' + err); }); // When the connection is disconnected mongoose.connection.on('disconnected', functi.. 이전 1 다음