Sha256: 4fd5c0c17589fab53aea940bafbf2aeefaa5108fa6161238c41b38bbd42e9966

Contents?: true

Size: 289 Bytes

Versions: 1

Compression:

Stored size: 289 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  module StaticValidation
    module FragmentsAreNamed
      def on_fragment_definition(node, _parent)
        if node.name.nil?
          add_error("Fragment definition has no name", node)
        end
        super
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
graphql-1.9.0.pre1 lib/graphql/static_validation/rules/fragments_are_named.rb