lib/graphql/schema/introspection_system.rb in graphql-1.10.0.pre3 vs lib/graphql/schema/introspection_system.rb in graphql-1.10.0.pre4
- old
+ new
@@ -32,10 +32,13 @@
end
@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 entry_points