dotansimha / dotansimha/graphql-code-generator

[typescript-operations] inlineFragmentTypes to inline all types except some

Open
#10,207 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
23

Description

### Is your feature request related to a problem? Please describe.

In the `typescript-operations` plugin, i want to use `inlineFragmentTypes: "inline"` 99% of the time.
I have a few fragments that are so big that inlining them results in thousands of lines of typings and drastically slows down typescript LSP and compilation.

### Describe the solution you'd like

I've been working with a patch on visitor-plugin-common for a few years now where I added the ability to say: Inline all fragment types except a specific list of fragments
I already opened a proposal PR a few months back
https://github.com/dotansimha/graphql-code-generator/pull/10062

### Describe alternatives you've considered

We are slowly transitioning to fragment masking so I suspect this won't be a problem at some point in the future, but I'd really love to be able to get rid of my patch and maybe some other people in the community has encountered that problem

### Any additional important details?

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.