facebook / facebook/relay

[relay-compiler] Generated types for fragment on interface type with inline fragments

Open
#3,133 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

I have a [reproduction here](https://github.com/NickDubelman/relay-inline-fragment-repro), where I show that you must do something like
```graphql
fragment App2_animal on Animal {
__typename
... on Cat {
id
name
age
lives
}
... on Dog {
id
name
age
breedDescription
}
}
```

instead of
```graphql
fragment App_animal on Animal {
__typename
id
name
age
... on Cat {
lives
}
... on Dog {
breedDescription
}
}
```

I have read as many issues as I could find in this repo and the ts repo and it seems this is intentional? Why is that the case?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.