lib/rails/graphql/helpers/with_directives.rb
def using?(item_or_symbol)
          directive = item_or_symbol.is_a?(Symbol) ? fetch!(item_or_symbol) : item_or_symbol
          raise ArgumentError, <<~MSG.squish unless directive < GraphQL::Directive
            The provided #{item_or_symbol.inspect} is not a valid directive.
          MSG

          all_directives.any? { |item| item.is_a?(directive) }
        end
# Check wheter a given directive is being used
Check wheter a given directive is being used
Check wheter a given directive is being used
def using?(item_or_symbol)
          directive = item_or_symbol.is_a?(Symbol) ? fetch!(item_or_symbol) : item_or_symbol
          raise ArgumentError, <<~MSG.squish unless directive < GraphQL::Directive
            The provided #{item_or_symbol.inspect} is not a valid directive.
          MSG
          all_directives.any? { |item| item.is_a?(directive) }
        end
def using? ( item_or_symbol ) directive = item_or_symbol . is_a? ( Symbol ) ? fetch! ( item_or_symbol ) : item_or_symbol raise ArgumentError , <<~MSG . squish unless directive < GraphQL :: Directive 
            The provided  #{ item_or_symbol . inspect }  is not a valid directive.
           MSG all_directives . any? { | item | item . is_a? ( directive ) } end
Check wheter a given directive is being used
Check wheter a given directive is being used
item_or_symbol