From 041fc5a28ea84a53c894ba436844236047e0ba76 Mon Sep 17 00:00:00 2001 From: Brianna Fugate Date: Mon, 2 Feb 2026 12:22:48 -0500 Subject: [PATCH] fix(composition): partial revert removing single element list to non list coercion --- apollo-federation/src/compat.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apollo-federation/src/compat.rs b/apollo-federation/src/compat.rs index ee80a2d32a..9291f3aff9 100644 --- a/apollo-federation/src/compat.rs +++ b/apollo-federation/src/compat.rs @@ -180,13 +180,6 @@ fn coerce_value( coerce_value(types, element, ty.item_type())?; } } - // Coerce single-element list to a non-list type. - // This is the reverse of the scalar-to-list coercion below. - (Value::List(list), Some(_)) if !ty.is_list() && list.len() == 1 => { - let element = list.pop().unwrap(); - *target.make_mut() = element.as_ref().clone(); - coerce_value(types, target, ty)?; - } // Coerce single values (except null) to a list. ( Value::Object(_)