class Graphql::Generators::InterfaceGenerator

“‘
rails g graphql:interface NamedEntityType name:String!
“`
with the specified fields.
Generate an interface type by name,

def create_type_file

def create_type_file
  template "interface.erb", "#{options[:directory]}/types/#{type_file_name}.rb"
end