mongodb data to res.render
===

Is there a way which I can make this look as clean as I'd like it to. All my data displays in the console but I keep getting the error docs is not defined.  The issue is I cant pass it to the page. 

Here is the non working code which I have.

    var BlogModel = mongoose.model('blogmodel', BlogPost, 'blogmodel');
    
    var bms = BlogModel.find({ "date" : { $gte : new Date("2011-01-01T00:00:00Z")}} ).limit(1);
    bms.execFind(function(err, docs) {
    	console.log(docs);
    });
    
    module.exports = {
        get: function(req, res) {
        	app.set('view engine', 'hbs'); 
        	var model = {
            	layout:'blog.hbs',
            	BlogModel: docs
            };
        	
            //session check
    	    //if
            //else code
        	
        	res.render('blog', model);
        }
    
    };

I'd like the model code to not be in the module.exports get section.  But If it's not possible thats okay.  I have a lot of other things going on and think my code would be more readable if I could just declare it in the model variable and call res.render('blog', model); at the end of GET