module GraphQL::Schema::Member::BaseDSLMethods

def default_graphql_name

without any namespaces and with any `-Type` suffix removed
The default name is the Ruby constant name,
Creates the default name for a schema member.
def default_graphql_name
  @default_graphql_name ||= begin
    raise GraphQL::RequiredImplementationMissingError, 'Anonymous class should declare a `graphql_name`' if name.nil?
    g_name = -name.split("::").last
    g_name.end_with?("Type") ? g_name.sub(/Type\Z/, "") : g_name
  end
end