Class: Graphql::Generators::UnionGenerator

Inherits:
TypeGeneratorBase
  • Object
show all
Defined in:
lib/generators/graphql/union_generator.rb

Overview

Generate a union type by name with the specified member types.

rails g graphql:union SearchResultType ImageType AudioType

Method Summary

Methods inherited from TypeGeneratorBase

#create_type_file, normalize_type_expression

Methods included from Core

#create_dir, #insert_root_type, #module_namespacing_when_supported, #schema_file_path