Sha256: 5a4429ccfa8235b245c08b77bfe8b33fffabef1c01dd166a187a16579bff49f5
Contents?: true
Size: 510 Bytes
Versions: 173
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true module GraphQL module StaticValidation module SubscriptionRootExists def on_operation_definition(node, _parent) if node.operation_type == "subscription" && context.warden.root_type_for_operation("subscription").nil? add_error(GraphQL::StaticValidation::SubscriptionRootExistsError.new( 'Schema is not configured for subscriptions', nodes: node )) else super end end end end end
Version data entries
173 entries across 173 versions & 2 rubygems