src/lib/db.js
function getGroup(name, done) {
  return getModels(function(m) {
    return m.collections.group.findOne({ name })
      .populate("members").populate("leaders").exec(done);
  });
}
function getGroup(name, done) {
  return getModels(function(m) {
    return m.collections.group.findOne({ name })
      .populate("members").populate("leaders").exec(done);
  });
}
function getGroup ( name , done ) { return getModels ( function ( m ) { return m . collections . group . findOne ( { name } ) . populate ( "members" ) . populate ( "leaders" ) . exec ( done ) ; } ) ; }
Get a group. It populates the members and leaders automatically.

@param {String} name
@param {Function} done - done(err, group)
Get a group . It populates the members and leaders automatically .