Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 07ef8d2

Browse filesBrowse files
lynnshaoyufacebook-github-bot
authored andcommitted
- add exec time resolvers directive to split module import
Reviewed By: tyao1 Differential Revision: D73052120 fbshipit-source-id: d5ad211daac173024b194a4003984889a7bb34c5
1 parent ebd2946 commit 07ef8d2
Copy full SHA for 07ef8d2

1 file changed

+11-1Lines changed: 11 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎compiler/crates/relay-transforms/src/match_/split_module_import.rs‎

Copy file name to clipboardExpand all lines: compiler/crates/relay-transforms/src/match_/split_module_import.rs
+11-1Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
use std::sync::Arc;
99

10+
use common::DirectiveName;
1011
use common::WithLocation;
12+
use graphql_ir::Directive;
1113
use graphql_ir::FragmentDefinitionNameSet;
1214
use graphql_ir::InlineFragment;
1315
use graphql_ir::OperationDefinition;
@@ -147,7 +149,15 @@ impl Transformer<'_> for SplitModuleImportTransform<'_, '_> {
147149
),
148150
type_: parent_type,
149151
variable_definitions: vec![],
150-
directives: vec![],
152+
directives: vec![Directive {
153+
name: WithLocation::new(
154+
module_metadata.fragment_source_location,
155+
DirectiveName("exec_time_resolvers".intern()),
156+
),
157+
arguments: vec![],
158+
data: None,
159+
location: module_metadata.fragment_source_location,
160+
}],
151161
selections: next_selections,
152162
kind: OperationKind::Query,
153163
},

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.