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
Is there an existing issue that is already proposing this?
I have searched the existing issues
Is your feature request related to a problem? Please describe it
I would like to be able to control the output GraphQL schema during boot time through some configuration variables.
Describe the solution you'd like
Given that these configuration variables can be environment variables or something else, common decorators like Field and ResolveField and Directive can accept an Enabled variable that will add them or not in the output GraphQL schema.
I didn't tried with graphql fields but in theory you can wrap those fields in a custom decorator and apply you custom logic, i had a similar case doing it using the swagger decorators fields.
There are no plans to implement it in the foreseeable future.
If you think your request could live outside Nest's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
I would like to be able to control the output GraphQL schema during boot time through some configuration variables.
Describe the solution you'd like
Given that these configuration variables can be environment variables or something else, common decorators like
Field
andResolveField
andDirective
can accept anEnabled
variable that will add them or not in the output GraphQL schema.Teachability, documentation, adoption, migration strategy
Happy to write the needed documentation (or even help with implementation)
What is the motivation / use case for changing the behavior?
For doing incremental builds and production releases based on environment configuration variables.
The text was updated successfully, but these errors were encountered: