Sha256: f7ea667c819cb65465e43271c082721bd4f9ecc65dedafb35ca74727ab1e7629
Contents?: true
Size: 506 Bytes
Versions: 89
Compression:
Stored size: 506 Bytes
Contents
# frozen_string_literal: true module GraphQL module StaticValidation module QueryRootExists def on_operation_definition(node, _parent) if (node.operation_type == 'query' || node.operation_type.nil?) && context.warden.root_type_for_operation("query").nil? add_error(GraphQL::StaticValidation::QueryRootExistsError.new( 'Schema is not configured for queries', nodes: node )) else super end end end end end
Version data entries
89 entries across 89 versions & 1 rubygems