Method: GraphQL::Schema::Member::BaseDSLMethods::ConfigurationExtension#inherited

Defined in:
lib/graphql/schema/member/base_dsl_methods.rb

#inherited(child_class) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/graphql/schema/member/base_dsl_methods.rb', line 70

def inherited(child_class)
  child_class.introspection(introspection)
  child_class.description(description)
  child_class.comment(nil)
  child_class.default_graphql_name = nil

  if defined?(@graphql_name) && @graphql_name && (self.name.nil? || graphql_name != default_graphql_name)
    child_class.graphql_name(graphql_name)
  else
    child_class.graphql_name = nil
  end
  super
end