class Graphql::Generators::InterfaceGenerator

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

def fields

def fields
  custom_fields
end

def graphql_type

def graphql_type
  "interface"
end