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