Skip to content

Commit

Permalink
fix federation cli
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszkuc committed Dec 2, 2024
1 parent 24ea559 commit baac260
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions apollo-federation/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ struct QueryPlannerArgs {
/// Enable @defer support.
#[arg(long, default_value_t = false)]
enable_defer: bool,
/// Reuse fragments to compress subgraph queries.
#[arg(long, default_value_t = false)]
reuse_fragments: bool,
/// Generate fragments to compress subgraph queries.
#[arg(long, default_value_t = false)]
generate_fragments: bool,
Expand Down Expand Up @@ -109,8 +106,6 @@ enum Command {
impl QueryPlannerArgs {
fn apply(&self, config: &mut QueryPlannerConfig) {
config.incremental_delivery.enable_defer = self.enable_defer;
// --generate-fragments trumps --reuse-fragments
config.reuse_query_fragments = self.reuse_fragments && !self.generate_fragments;
config.generate_query_fragments = self.generate_fragments;
config.subgraph_graphql_validation = self.subgraph_validation.unwrap_or(true);
if let Some(max_evaluated_plans) = self.max_evaluated_plans {
Expand Down

0 comments on commit baac260

Please sign in to comment.