src/type/type.js
function listToGraphQLEnumType(list, name) {
  const values = reduce(list, (values, val) => {
    values[val] = { value: val };
    return values;
  }, {});
  return new GraphQLEnumType({ name, values });
}
function listToGraphQLEnumType(list, name) {
  const values = reduce(list, (values, val) => {
    values[val] = { value: val };
    return values;
  }, {});
  return new GraphQLEnumType({ name, values });
}
function listToGraphQLEnumType ( list , name ) { const values = reduce ( list , ( values , val ) => { values [ val ] = { value : val } ; return values ; } , { } ) ; return new GraphQLEnumType ( { name , values } ) ; }
Returns a GraphQL Enum type based on a List of Strings
@param  {Array} list
@param  {String} name
@return {Object}
Returns a GraphQL Enum type based on a List of Strings