You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a schema first approach, this means the only way to generate a sorted schema is to run the NestJS app that instantiates the GraphQLModule. This is a bummer because the example script shown in the schema first documentation only uses the GraphQLDefinitionsFactory.
Describe the solution you'd like
GraphQLDefinitionsFactory should allow the same sortSchema option in its GenerateOptions.
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
Currently the only way to enable
sortSchema: true
is via the GraphQLModule's GqlModuleOption but thesortSchema
option isn't available in its GenerateOptions type.When using a schema first approach, this means the only way to generate a sorted schema is to run the NestJS app that instantiates the GraphQLModule. This is a bummer because the example script shown in the schema first documentation only uses the GraphQLDefinitionsFactory.
Describe the solution you'd like
GraphQLDefinitionsFactory
should allow the samesortSchema
option in itsGenerateOptions
.Teachability, documentation, adoption, migration strategy
No response
What is the motivation / use case for changing the behavior?
It should be possible to generate the same GraphQL schema via GraphQLModule and GraphQLDefinitionsFactory.
The text was updated successfully, but these errors were encountered: