[typescript-operations] generate additional type that contains all operations
Author: hjoelhCreated Feb 15, 2025Updated Sep 20, 2026
Is your feature request related to a problem? Please describe.
I needed a single type that contains all my operations, with their response and/or variables
Like this:
this allows for some really cool stuff related to a projects graphql operations, heres what Im using it for:
query key finder for react query
msw wrapper, so you can write type safe and up to date mocks
I wonder if this can be useful to others and if there are more usecases!
Describe the solution you'd like
i'm running a fork that does this, I can open a PR https://gist.github.com/hjoelh/4b14af182d5cfd8f9ed825755b4c8ec4
Describe alternatives you've considered
No response
Any additional important details?
should it be default on? its a non breaking change so it could be should it be an option? also works or a seperate plugin? not sure about this one
Source: dotansimha/graphql-code-generator