src/lib/db.js
function getGroups(done) {
  return getModels(function(m) {
    return m.collections.group.find().exec(done);
  });
}
function getGroups(done) {
  return getModels(function(m) {
    return m.collections.group.find().exec(done);
  });
}
function getGroups ( done ) { return getModels ( function ( m ) { return m . collections . group . find ( ) . exec ( done ) ; } ) ; }
Get all groups. Members and leaders are not loaded automatically.
This is by design; avoid too much data fetching.

@param {Function} done - done(err, groups)
Get all groups . Members and leaders are not loaded automatically . This is by design ; avoid too much data fetching .