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