Remove GQL types from TS type name when extracting fields to types #10598
Unanswered
BigBrainAFK
asked this question in
Q&A
Replies: 1 comment 12 replies
-
|
Hi @BigBrainAFK , we are finalising on the stable at the moment (very close now!) If you'd like to test it out, you could try the versions in this release to see if it fits your purpose? We are writing migration guide to migrate from Apollo Tooling -> Codegen, including which options to use etc. |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am in the process of (finally) migrating from the apollo cli to graphql-codegen and have arrived at a config that is almost satisfactory.
I have one nit though which is that
extractAllFieldsToTypesit generates really long typenames like:GiftCardCreateMutation_giftCardCreate_GiftCardCreatePayload_userErrors_GiftCardUserErrorwhere
GiftCardCreatePayloadandGiftCardUserErrorare not required in the typenames and are just the typename of the fieldsgiftCardCreateanduserErrors. (theres also no type that ends on justuserErrors)Any way to disable this behavior?
P.S.: I know of #10561 but wasnt sure if the only option for me is to wait for it to merge into stable in the future.
Beta Was this translation helpful? Give feedback.
All reactions