lib/graphql/schema/introspection_system.rb in graphql-2.3.2 vs lib/graphql/schema/introspection_system.rb in graphql-2.3.5
- old
+ new
@@ -23,13 +23,13 @@
load_constant(:InputValueType),
load_constant(:TypeKindEnum),
load_constant(:DirectiveLocationEnum)
]
@types = {}
- @possible_types = {}
+ @possible_types = {}.tap(&:compare_by_identity)
type_defns.each do |t|
@types[t.graphql_name] = t
- @possible_types[t.graphql_name] = [t]
+ @possible_types[t] = [t]
end
@entry_point_fields =
if schema.disable_introspection_entry_points?
{}
else