lib/graphql/schema/introspection_system.rb in graphql-2.0.23 vs lib/graphql/schema/introspection_system.rb in graphql-2.0.24
- old
+ new
@@ -153,10 +153,10 @@
query_ctx = ctx.query.context
# Remove the QueryType wrapper
if obj.is_a?(GraphQL::Schema::Object)
obj = obj.object
end
- wrapped_object = @object_class.authorized_new(obj, query_ctx)
+ wrapped_object = @object_class.wrap(obj, query_ctx)
@inner_resolve.call(wrapped_object, args, ctx)
end
end
end
end