From 95a8db52aa02776a3acabb9eea4e99f3782afb32 Mon Sep 17 00:00:00 2001 From: TylerBloom Date: Wed, 6 Nov 2024 10:44:25 -0500 Subject: [PATCH] Removed error from QP for denying schemas with @context --- apollo-federation/src/query_plan/query_planner.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/apollo-federation/src/query_plan/query_planner.rs b/apollo-federation/src/query_plan/query_planner.rs index 1a3f1002f1..4de664d8be 100644 --- a/apollo-federation/src/query_plan/query_planner.rs +++ b/apollo-federation/src/query_plan/query_planner.rs @@ -582,19 +582,6 @@ impl QueryPlanner { .types .values() .any(|extended_type| extended_type.directives().has(CONTEXT_DIRECTIVE)); - if has_set_context { - let message = "\ - `experimental_query_planner_mode: new` or `both` cannot yet \ - be used with `@context`. \ - Remove uses of `@context` to try the experimental query planner, \ - otherwise switch back to `legacy` or `both_best_effort`.\ - "; - return Err(SingleFederationError::UnsupportedFeature { - message: message.to_owned(), - kind: crate::error::UnsupportedFeatureKind::Context, - } - .into()); - } Ok(()) } }