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 19, 2022
1 parent f96771b commit 031b3c0
Show file tree
Hide file tree
Showing 18 changed files with 359 additions and 74 deletions.
173 changes: 116 additions & 57 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 @@ -76,6 +76,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 @@ -120,6 +120,7 @@ pub fn transform_fixture(fixture: &Fixture<'_>) -> Result<String, String> {
use_named_imports_for_relay_resolvers: false,
relay_resolver_model_syntax_enabled: false,
relay_resolver_enable_terse_syntax: false,
enable_mock_client_data_metadata: FeatureFlag::Disabled,
};

let default_project_config = ProjectConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ pub fn transform_fixture(fixture: &Fixture<'_>) -> Result<String, String> {
use_named_imports_for_relay_resolvers: false,
relay_resolver_model_syntax_enabled: false,
relay_resolver_enable_terse_syntax: false,
enable_mock_client_data_metadata: FeatureFlag::Disabled,
};

let project_config = ProjectConfig {
Expand Down
Loading

0 comments on commit 031b3c0

Please sign in to comment.