Skip to content

Commit

Permalink
remove duplicate rust query planner config
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Nov 29, 2024
1 parent 4560b50 commit d25d5e1
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions apollo-router/src/query_planner/bridge_query_planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,7 @@ impl PlannerMode {
schema: &Schema,
configuration: &Configuration,
) -> Result<Arc<QueryPlanner>, ServiceBuildError> {
let config = apollo_federation::query_plan::query_planner::QueryPlannerConfig {
reuse_query_fragments: configuration
.supergraph
.reuse_query_fragments
.unwrap_or(true),
subgraph_graphql_validation: false,
generate_query_fragments: configuration.supergraph.generate_query_fragments,
incremental_delivery:
apollo_federation::query_plan::query_planner::QueryPlanIncrementalDeliveryConfig {
enable_defer: configuration.supergraph.defer_support,
},
type_conditioned_fetching: configuration.experimental_type_conditioned_fetching,
debug: Default::default(),
};
let config = configuration.rust_query_planner_config();
let result = QueryPlanner::new(schema.federation_supergraph(), config);

match &result {
Expand Down

0 comments on commit d25d5e1

Please sign in to comment.