apollographql / apollo-tooling

✏️ Apollo CLI for client tooling (Mostly replaced by Rover)
https://apollographql.com
MIT License
3.04k stars 467 forks source link

Wanted: Ability to force-export fragments in generatedTypes #2580

Open fbruckhoff opened 2 years ago

fbruckhoff commented 2 years ago

In our codebase generatedTypes.ts includes some useful fragments that are not being exported. I believe these are fragments that aren't defined manually in a .gql file and are auto-generated based on other fragment definitions, specifically some that use ... on SomethingElse in their body, resulting in non-exported fragments like Something_SomethingElse_Fragment.

It would be really cool if there was a way to force codegen to export these as well.