lib/graphql/subscriptions/instrumentation.rb in graphql-1.10.0.pre1 vs lib/graphql/subscriptions/instrumentation.rb in graphql-1.10.0.pre2

- old
+ new

@@ -9,10 +9,10 @@ def initialize(schema:) @schema = schema end def instrument(type, field) - if type == @schema.subscription + if type == @schema.subscription.graphql_definition # This is a root field of `subscription` subscribing_resolve_proc = SubscriptionRegistrationResolve.new(field.resolve_proc) field.redefine(resolve: subscribing_resolve_proc) else field