Skip to content

Commit a0cb4c0

Browse files
committed
change instruction id so it does not clash with root objects
1 parent 0c62f76 commit a0cb4c0

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

compiler/crates/relay-typegen/src/rescript_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ pub fn get_safe_key(original_key: &String) -> (String, Option<String>) {
326326

327327
pub fn instruction_to_key_value_pair(instruction: &ConverterInstructions) -> (String, String) {
328328
match &instruction {
329-
&ConverterInstructions::IsResult => (String::from("r"), String::from("")),
329+
&ConverterInstructions::IsResult => (String::from("re"), String::from("")),
330330
&ConverterInstructions::ConvertUnion(union_record_name) => {
331331
(String::from("u"), union_record_name.to_string())
332332
}

compiler/test-project-res/src/__generated__/TestCatchAndFriends2Query_graphql.res

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/test-project-res/src/__generated__/TestCatchAndFriends3Query_graphql.res

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/test-project-res/src/__generated__/TestCatchAndFriendsQuery_graphql.res

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)