Sha256: ec9cf90736c6858b4d395d6683a0428a88b9f3a3a0c6a6cbf289f9cb9580743d
Contents?: true
Size: 583 Bytes
Versions: 65
Compression:
Stored size: 583 Bytes
Contents
# frozen_string_literal: true module GraphQL class Subscriptions class DefaultSubscriptionResolveExtension < GraphQL::Subscriptions::SubscriptionRoot::Extension def resolve(context:, object:, arguments:) has_override_implementation = @field.resolver || object.respond_to?(@field.resolver_method) if !has_override_implementation if context.query.subscription_update? object.object else context.skip end else yield(object, arguments) end end end end end
Version data entries
65 entries across 65 versions & 2 rubygems