Sha256: 54d23fdb31d2b577b7d0241223be08fb6fa43b0d0bb74e9126aff1e851763c4c

Contents?: true

Size: 426 Bytes

Versions: 5

Compression:

Stored size: 426 Bytes

Contents

module GraphQL
  class Query
    module DirectiveResolution
      def self.include_node?(irep_node, query)
        irep_node.directives.each do |directive_node|
          directive_defn = directive_node.definitions.first
          args = query.arguments_for(directive_node, directive_defn)
          if !directive_defn.include?(args)
            return false
          end
        end
        true
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
graphql-0.18.1 lib/graphql/query/directive_resolution.rb
graphql-0.18.0 lib/graphql/query/directive_resolution.rb
graphql-0.17.2 lib/graphql/query/directive_resolution.rb
graphql-0.17.1 lib/graphql/query/directive_resolution.rb
graphql-0.17.0 lib/graphql/query/directive_resolution.rb