The Relay compiler is gaining a new capability: codemods What GraphQL codemods would you like to see built into the Relay compiler? relay.dev/docs/next/guid…
Rewriting all fragment spreads as aliased fragment spreads (dangerous or not); ensure that any field containing inline fragments that refine to a concrete type has only inline fragments that refine to a concrete type + each has a typename selection + no directives (i.e. enforce that a discriminated union is created) Those are top of mind for me. Anything else would (presumably) require knowledge of the JS. But if Relay gains that, then there's a lot!
@RelayFramework Adding TS type annotations, where it would any otherwise. We’re on flow and the integration is lovely, but on TS project it’s all very manual.
@RelayFramework Automatic typescript imports and annotations
@RelayFramework would it be possible to extend the compiler so it does some extra things during its watch mode?