db.js
// index the graph name for fast lookups and uniqueness
index the graph name for fast lookups and uniqueness
index the graph name for fast lookups and uniqueness
function ensureIndex() {
	graphs().ensureIndex({
		name: 1
	}, {
		unique: true
	}, function(err) {
		if (err) {
			console.log(err.stack);
		}
	});
}
function ensureIndex ( ) { graphs ( ) . ensureIndex ( { name : 1 } , { unique : true } , function ( err ) { if ( err ) { console . log ( err . stack ) ; } } ) ; }
index the graph name for fast lookups and uniqueness
index the graph name for fast lookups and uniqueness
// not fatal, but log the error