Sha256: f6f9431f45fd2ea014c8378d0961111929724eacaa05849b03d00f39c5ffc43c
Contents?: true
Size: 490 Bytes
Versions: 173
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true module GraphQL module StaticValidation module MutationRootExists def on_operation_definition(node, _parent) if node.operation_type == 'mutation' && context.warden.root_type_for_operation("mutation").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
173 entries across 173 versions & 2 rubygems