class Graphql::Generators::InterfaceGenerator

Generate an interface type by name, with the specified fields.

“` rails g graphql:interface NamedEntityType name:String! “`

Public Instance Methods

create_type_file() click to toggle source
# File lib/generators/graphql/interface_generator.rb, line 22
def create_type_file
  template "interface.erb", "#{options[:directory]}/types/#{type_file_name}.rb"
end