![]()
nnect('mongodb://localhost:27017/tutorialkart') ĭb.on('error', (console, 'connection error:')) Node-js-mongodb-connection.js var mongoose = require('mongoose') To check if the connection is successful or not, you may use callback functions : on() and once(). MongoDB NodeJS > db.To get a reference to the database specified, use connection() function on Mongoose reference, as shown below : var db = nnection Is connection successful ?.MongoDB dynamic query with javascript, working static, not with variable. #Conncet to remote db robo 3t update
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |