Sha256: 7944eb28cbbe7d7bd0035ac65aafb7daf3f178a83176f4a6476f240eec3f2ad1
Contents?: true
Size: 473 Bytes
Versions: 22
Compression:
Stored size: 473 Bytes
Contents
# frozen_string_literal: true module GraphQL module StaticValidation module MutationRootExists def on_operation_definition(node, _parent) if node.operation_type == 'mutation' && context.query.types.mutation_root.nil? add_error(GraphQL::StaticValidation::MutationRootExistsError.new( 'Schema is not configured for mutations', nodes: node )) else super end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems