lib/graphql/schema/introspection_system.rb in graphql-1.9.21 vs lib/graphql/schema/introspection_system.rb in graphql-1.10.0.pre1
- old
+ new
@@ -20,13 +20,10 @@
@directive_location_enum = load_constant(:DirectiveLocationEnum).to_graphql
@entry_point_fields =
if schema.disable_introspection_entry_points
{}
else
- 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
+ get_fields_from_class(class_sym: :EntryPoints)
end
@dynamic_fields = get_fields_from_class(class_sym: :DynamicFields)
end
def object_types