Skip to content

Commit

Permalink
Removed error from QP for denying schemas with @context
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBloom committed Nov 6, 2024
1 parent 53c0c1b commit 95a8db5
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions apollo-federation/src/query_plan/query_planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
}
Expand Down

0 comments on commit 95a8db5

Please sign in to comment.