Sha256: e8c9f65c4cd8c257936cc76f9705c01cdd4db2b2707c8e93f2a8df88b7c4dfc0

Contents?: true

Size: 479 Bytes

Versions: 8

Compression:

Stored size: 479 Bytes

Contents

module GraphQL
  class Query
    module DirectiveResolution
      def self.include_node?(ast_node, query)
        ast_node.directives.each do |ast_directive|
          directive = query.schema.directives[ast_directive.name]
          args = GraphQL::Query::LiteralInput.from_arguments(ast_directive.arguments, directive.arguments, query.variables)
          if !directive.include?(args)
            return false
          end
        end
        true
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
graphql-0.15.3 lib/graphql/query/directive_resolution.rb
graphql-0.15.2 lib/graphql/query/directive_resolution.rb
graphql-0.14.2 lib/graphql/query/directive_resolution.rb
graphql-0.15.1 lib/graphql/query/directive_resolution.rb
graphql-0.15.0 lib/graphql/query/directive_resolution.rb
graphql-0.14.1 lib/graphql/query/directive_resolution.rb
graphql-0.14.0 lib/graphql/query/directive_resolution.rb
graphql-0.13.0 lib/graphql/query/directive_resolution.rb