Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MongoDB Node.js isn't only get null in response to getting data
- (function() {
- var client, db, listAllData, server;
- db = require('mongodb').Db;
- server = require('mongodb').Server;
- client = new db('images', new server('something.mongolab.com', 111111, {
- username: 'username',
- password: 'password'
- }));
- client.open(function(err, the_client) {
- the_client.collectionNames(function(err, colls) {
- console.log(colls);
- });
- });
- }).call(this);
Add Comment
Please, Sign In to add comment