lib/graphql/schema/introspection_system.rb in graphql-1.9.17 vs lib/graphql/schema/introspection_system.rb in graphql-1.9.18

- old
+ new

@@ -20,10 +20,13 @@ @directive_location_enum = load_constant(:DirectiveLocationEnum).to_graphql @entry_point_fields = if schema.disable_introspection_entry_points {} else - get_fields_from_class(class_sym: :EntryPoints) + entry_point_fields = get_fields_from_class(class_sym: :EntryPoints) + entry_point_fields.delete('__schema') if schema.disable_schema_introspection_entry_point + entry_point_fields.delete('__type') if schema.disable_type_introspection_entry_point + entry_point_fields end @dynamic_fields = get_fields_from_class(class_sym: :DynamicFields) end def object_types