Skip to content

Commit

Permalink
modifying directive to allow for client fields
Browse files Browse the repository at this point in the history
  • Loading branch information
stewartavery committed Oct 4, 2022
1 parent 41ede85 commit 7e6ce8d
Show file tree
Hide file tree
Showing 18 changed files with 374 additions and 72 deletions.
186 changes: 131 additions & 55 deletions compiler/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions compiler/crates/common/src/feature_flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ pub struct FeatureFlags {
/// Print queries in compact form
#[serde(default)]
pub compact_query_text: FeatureFlag,

// Enables @relay_test_operation support for client data.
#[serde(default)]
pub enable_mock_client_data_metadata: FeatureFlag,
}

#[derive(Debug, Deserialize, Clone, Serialize)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ pub fn transform_fixture(fixture: &Fixture<'_>) -> Result<String, String> {
skip_printing_nulls: FeatureFlag::Disabled,
enable_fragment_aliases: FeatureFlag::Enabled,
compact_query_text: FeatureFlag::Disabled,
enable_mock_client_data_metadata: FeatureFlag::Disabled,
};

let default_project_config = ProjectConfig {
Expand Down
Loading

0 comments on commit 7e6ce8d

Please sign in to comment.