Replies: 1 comment
-
rofl, forgot that i have asked this very same question before #10348 |
Beta Was this translation helpful? Give feedback.
0 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.
-
I basically followed the guide here https://the-guild.dev/graphql/codegen/docs/guides/react-vue , i have the following config
and it generates the following files fine:
index.ts exports two files but not graphql.ts:
which is same as the example given in the repo:
https://github.com/dotansimha/graphql-code-generator/tree/master/examples/react/apollo-client/src/gql
https://github.com/dotansimha/graphql-code-generator/blob/master/examples/react/apollo-client/src/gql/index.ts
i'd like to ask why
graphql.ts
is specifically not exported? it contains types that i can use outside the library (e.g. mutation result type)if i add it manually, it will be overwritten in the next codegen. would like to understand the reason behind this coz not being able to explicitly write types is cramping my coding style outside the library.. thank you!
Beta Was this translation helpful? Give feedback.
All reactions