Consider the following code, where 'Team' is a mongoose model.
var Team = mongoose.model( 'Team' );
Team.find({'GroupName':gname}, function (err, teams) {
// Some code
}
How do I get rid of this hard coding where I hard code 'GroupName':gname during selection in mongo?