docs: function listToGraphQLEnumType(list, name) {
    const values = reduce(list, (values, val) => {
      values[val] = { value: val };
      return values;
    }, {});
    return new GraphQLEnumType({ name, values });
  }