Skip to content

Instantly share code, notes, and snippets.

// Change the _open function in mongoose's connection.js to this
// and you'll be able to connect to MongoHQ URLS!
_open: function(options){
var self = this;
this.db = new mongo.Db(this.name, new mongo.Server(this.uri.hostname, this.uri.port, options));
if (this.uri.auth) {
var auth = this.uri.auth.split(':');
this.db.open(function(err) {