code: function processEnumType (type) {
    var fields = _.map(type.enumValues, enumValue => {
      var field = _.cloneDeep(enumValue)
      field.isEnumValue = true
      return field
    })
    return {
      name: type.name,
      isEnumType: true,
      fields: fields
    }
  }
docs: process a graphql input type object returns simplified version of the input type