Roadmap for next major version of GraphQL Code Generator #3955
Unanswered
dotansimha
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's try to track and suggest ideas for Codegen v2 here.
Focus on internal API and plugins, but feel free to discuss plugin-specific as well.
Internal API:
typescript
can add to the shared object a method calledignoreType()
, and allow other plugins to specifically ignore specific things.config
phase and allow plugins to build that shared object and parse configurations that are specific to it.schema
andschemaAst
fields)typescript
namingConvention.enumsValues
to bekeep
, or at least something else that reduces issues with it.typescript-operations
typescript
andtypescript-operations
- allowing those to run independently.Similar to
operationTypesOnly: true, preResolveTypes: true
.typescript-react-apollo
withHooks
to betrue
by default.typescript-resolvers
IResolvers
(already deprecated)useSchemaStitching: false
by defaulttypescript
plugin to hide types that has mappers, if it's not in use by others.Also, in terms of configuration, we'll aim to change the existing structure and avoid object keys, and prefer array of objects instead.
This is an example of how it will look like:
This structure is more clear and easier to use with YAML. Also, plugins configuration will be enforced to be
object
(unlike today, whereadd
plugin accepts astring
)Beta Was this translation helpful? Give feedback.
All reactions