lib/generators/graphql/interface_generator.rb in graphql-1.13.6 vs lib/generators/graphql/interface_generator.rb in graphql-1.13.7

- old
+ new

@@ -11,17 +11,17 @@ # ``` class InterfaceGenerator < TypeGeneratorBase desc "Create a GraphQL::InterfaceType with the given name and fields" source_root File.expand_path('../templates', __FILE__) - argument :fields, - type: :array, - default: [], - banner: "name:type name:type ...", - desc: "Fields for this interface (type may be expressed as Ruby or GraphQL)" + private - def create_type_file - template "interface.erb", "#{options[:directory]}/types/#{type_file_name}.rb" + def graphql_type + "interface" + end + + def fields + custom_fields end end end end