lib/agent.js
function fetchEntries(contentTypes) {
  return when.map(contentTypes, function (contentType) {
    if (!contentType.id) {
      return when.reject('Content type `' + contentType.name + '` is missing an `id` value');
    }
    var filters = _.merge({}, contentType.filters, {content_type: contentType.id});
    return client.entries(filters).then(function (results) {
      response[contentType.name] = results;
    });
  });
}
function fetchEntries(contentTypes) {
  return when.map(contentTypes, function (contentType) {
    if (!contentType.id) {
      return when.reject('Content type `' + contentType.name + '` is missing an `id` value');
    }
    var filters = _.merge({}, contentType.filters, {content_type: contentType.id});
    return client.entries(filters).then(function (results) {
      response[contentType.name] = results;
    });
  });
}
function fetchEntries ( contentTypes ) { return when . map ( contentTypes , function ( contentType ) { if ( ! contentType . id ) { return when . reject ( 'Content type `' + contentType . name + '` is missing an `id` value' ) ; } var filters = _ . merge ( { } , contentType . filters , { content_type : contentType . id } ) ; return client . entries ( filters ) . then ( function ( results ) { response [ contentType . name ] = results ; } ) ; } ) ; }
Fetch entries from contentful

@param contentTypes [ { id: '', filters: {}, name: 'team-members' } ]
Fetch entries from contentful