Repository navigation
|
Hello @dotansimha, @eddeee888, We are currently migrating our project from Apollo Tooling to GraphQL Codegen. Our codebase is quite large, so to ensure a smooth transition, we are not yet adopting the new custom types ( To accommodate this, we have implemented changes as a patch to the existing GraphQL Codegen plugins. However, it would be ideal if these features became part of the official plugins. For example, we envision config options such as: config = {
useMaybe: false, // Default true. When false, render Maybe/InputMaybe as T | null
useScalars: false, // Default true. When false, use primitive types: string, boolean, number, or any
useExact: false, // Default true. When false, render Exact<T> as just T
copyGlobalTypes: true // Default false. Copy enums/types from globalTypes.ts to the output files and don't include globalTypes.ts
// ...
}The changes will be for Our company is willing to sponsor the work required to productize this for the open source version. Our aim is to make it easier and more incremental to migrate away from Apollo Tooling to GraphQL Codegen - which will hopefully benefit other people too. Thank you, |
Replies: 1 comment 2 replies
|
Hi @ikusakov2 , Could you please share a scenario where these utilities type block the migration? For context, there is an issue to help with migrating from Apollo tooling to Codegen, and it seems to work with majority of users: apollographql/apollo-tooling#2053 Happy to chat more to understand your use case! |
For posterity:
apollo-tooling: https://the-guild.dev/graphql/codegen/docs/migration/apollo-tooling