lib/graphql/schema/introspection_system.rb in graphql-1.9.6 vs lib/graphql/schema/introspection_system.rb in graphql-1.9.7

- old
+ new

@@ -16,10 +16,15 @@ @directive_type = load_constant(:DirectiveType).to_graphql @enum_value_type = load_constant(:EnumValueType).to_graphql @input_value_type = load_constant(:InputValueType).to_graphql @type_kind_enum = load_constant(:TypeKindEnum).to_graphql @directive_location_enum = load_constant(:DirectiveLocationEnum).to_graphql - @entry_point_fields = get_fields_from_class(class_sym: :EntryPoints) + @entry_point_fields = + if schema.disable_introspection_entry_points + {} + else + get_fields_from_class(class_sym: :EntryPoints) + end @dynamic_fields = get_fields_from_class(class_sym: :DynamicFields) end def object_types [