Skip to content

Commit

Permalink
dont emit internal Relay Resolver field
Browse files Browse the repository at this point in the history
  • Loading branch information
zth committed Jun 19, 2024
1 parent 557dfe5 commit 854490e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions compiler/crates/relay-typegen/src/rescript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,9 @@ fn get_object_props(
})
}
_ => {
if key.as_str().starts_with("$") {
if key.as_str().starts_with("$") || key.as_str().starts_with("__relay_") {
// Internal Relay types typically come prefixed with
// "&". Ignore those unless we have an explicit
// "&" or "__relay_". Ignore those unless we have an explicit
// strategy to handle them.
debug!("Internal prop found: {}", key);
None
Expand Down

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

0 comments on commit 854490e

Please sign in to comment.