code: function getTypeFields(type) {
    const fields = type._typeConfig.fields;
    return isFunction(fields) ? fields() : fields;
  }
docs: Extracts the fields of a GraphQL type
  @param  {GraphQLType} type
  @return {Object}