lib/graphql/static_validation/validation_context.rb in graphql-2.4.3 vs lib/graphql/static_validation/validation_context.rb in graphql-2.4.4
- old
+ new
@@ -27,9 +27,10 @@
@max_errors = max_errors || Float::INFINITY
@on_dependency_resolve_handlers = []
@visitor = visitor_class.new(document, self)
end
+ # TODO stop using def_delegators because of Array allocations
def_delegators :@visitor,
:path, :type_definition, :field_definition, :argument_definition,
:parent_type_definition, :directive_definition, :object_types, :dependencies
def on_dependency_resolve(&handler)