-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow @dangerously_unaliased on @inline fragments
Reviewed By: gordyf Differential Revision: D64069021 fbshipit-source-id: 9214e0bfe956f47e9fece6c3db81b4ffdc10247c
- Loading branch information
1 parent
2cf6c7f
commit 5c548bd
Showing
4 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...rates/relay-transforms/tests/inline_data_fragment/fixtures/dangerously_unaliased.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
==================================== INPUT ==================================== | ||
fragment User on User { | ||
...UserName @dangerously_unaliased_fixme | ||
} | ||
|
||
fragment UserName on User @inline { | ||
name | ||
} | ||
==================================== OUTPUT =================================== | ||
fragment User on User { | ||
... @__InlineDirectiveMetadata | ||
# InlineDirectiveMetadata { | ||
# fragment_name: FragmentDefinitionName( | ||
# "UserName", | ||
# ), | ||
# arguments: [], | ||
# variable_definitions: [], | ||
# used_global_variables: [], | ||
# } | ||
{ | ||
... on User { | ||
name | ||
} | ||
} | ||
} | ||
|
||
fragment UserName on User @inline { | ||
name | ||
} |
7 changes: 7 additions & 0 deletions
7
...crates/relay-transforms/tests/inline_data_fragment/fixtures/dangerously_unaliased.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
fragment User on User { | ||
...UserName @dangerously_unaliased_fixme | ||
} | ||
|
||
fragment UserName on User @inline { | ||
name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters