Sha256: affef56624425d236aa902576e4486df6e0d2b19c2adad626c1aa2c89c6f1816
Contents?: true
Size: 489 Bytes
Versions: 30
Compression:
Stored size: 489 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.query.types.query_root.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
30 entries across 30 versions & 1 rubygems