lib/graphql/execution/execute.rb in graphql-1.5.5 vs lib/graphql/execution/execute.rb in graphql-1.5.6

- old
+ new

@@ -21,12 +21,10 @@ end private def resolve_selection(object, current_type, selection, query_ctx, mutation: false ) - query = query_ctx.query - selection_result = SelectionResult.new selection.typed_children[current_type].each do |name, subselection| field_result = resolve_field( selection_result, @@ -141,13 +139,13 @@ nil end else case field_type.kind when GraphQL::TypeKinds::SCALAR - field_type.coerce_result(value) + field_type.coerce_result(value, field_ctx) when GraphQL::TypeKinds::ENUM - field_type.coerce_result(value, field_ctx.query.warden) + field_type.coerce_result(value, field_ctx) when GraphQL::TypeKinds::LIST inner_type = field_type.of_type i = 0 result = [] value.each do |inner_value| @@ -172,10 +170,10 @@ i += 1 end result when GraphQL::TypeKinds::NON_NULL wrapped_type = field_type.of_type - inner_value = resolve_value( + resolve_value( owner, parent_type, field_defn, wrapped_type, value,