lib/graph_ql/query/selection_resolver.rb in graphql-0.3.0 vs lib/graph_ql/query/selection_resolver.rb in graphql-0.4.0

- old
+ new

@@ -7,10 +7,10 @@ GraphQL::Nodes::InlineFragment => GraphQL::Query::InlineFragmentResolutionStrategy, } def initialize(target, type, selections, operation_resolver) @result = selections.reduce({}) do |memo, ast_field| - chain = GraphQL::DirectiveChain.new(ast_field, operation_resolver) { + chain = GraphQL::Query::DirectiveChain.new(ast_field, operation_resolver) { strategy_class = RESOLUTION_STRATEGIES[ast_field.class] strategy = strategy_class.new(ast_field, type, target, operation_resolver) strategy.result } memo.merge(chain.result)