Skip to content

Commit aa55640

Browse files
committed
Oops, put back unwrapper
1 parent 42b5c1f commit aa55640

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/graphql/schema/field/connection_extension.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ def after_resolve(value:, object:, arguments:, context:, memo:)
2929
elsif value.nil?
3030
nil
3131
else
32+
if object.is_a?(GraphQL::Schema::Object)
33+
object = object.object
34+
end
3235
connection_class = GraphQL::Relay::BaseConnection.connection_for_nodes(value)
3336
connection_class.new(
3437
value,

0 commit comments

Comments
 (0)