mongoose_fixtures.js
function loadObject(data, db, callback) {
    callback = callback || function() {};
    var iterator = function(modelName, next){
        insertCollection(modelName, data[modelName], db, next);
    };
    async.forEachSeries(Object.keys(data), iterator, callback);
}
function loadObject(data, db, callback) {
    callback = callback || function() {};
    var iterator = function(modelName, next){
        insertCollection(modelName, data[modelName], db, next);
    };
    async.forEachSeries(Object.keys(data), iterator, callback);
}
function loadObject ( data , db , callback ) { callback = callback || function ( ) { } ; var iterator = function ( modelName , next ) { insertCollection ( modelName , data [ modelName ] , db , next ) ; } ; async . forEachSeries ( Object . keys ( data ) , iterator , callback ) ; }
Loads fixtures from object data

@param {Object}      The data to load, keyed by the Mongoose model name e.g.:
{ User: [{name: 'Alex'}, {name: 'Bob'}] }
@param {Connection}  The mongoose connection to use
@param {Function}    Callback
Loads fixtures from object data