Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions compiler/crates/common/src/feature_flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@ pub struct FeatureFlags {
/// across a number of diffs.
#[serde(default)]
pub legacy_include_path_in_required_reader_nodes: FeatureFlag,

/// Produce native GraphQL fragment spreads when spreading a fragment with
/// @relay(mask: false) into a query, instead of inlining the contents of
/// that fragment for each use. This significantly reduces the uncompressed
/// size of query text when several mask:false fragment spreads are present,
/// but has no impact on masking behavior.
#[serde(default)]
pub use_native_fragment_spreads_for_unmasked_fragments: bool,
}

#[derive(Debug, serde::Deserialize, Clone, Serialize, Default, JsonSchema)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,11 @@
}
]
},
"use_native_fragment_spreads_for_unmasked_fragments": {
"description": "Produce native GraphQL fragment spreads when spreading a fragment with @relay(mask: false) into a query, instead of inlining the contents of that fragment for each use. This significantly reduces the uncompressed size of query text when several mask:false fragment spreads are present, but has no impact on masking behavior.",
"default": false,
"type": "boolean"
},
"use_reader_module_imports": {
"description": "Generate the `moduleImports` field in the Reader AST.",
"default": {
Expand Down Expand Up @@ -1082,6 +1087,7 @@
"text_artifacts": {
"kind": "disabled"
},
"use_native_fragment_spreads_for_unmasked_fragments": false,
"use_reader_module_imports": {
"kind": "disabled"
}
Expand Down
Loading
Loading