Codegen: exclude unnecessary type classes #908
Gavrilov-Ivan
started this conversation in
Ideas
Replies: 1 comment
-
Thanks for the feature request. We can look into adding that in the future. |
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
-
Hello
Currently dgs-codegen has settings parameter
generateDataTypes
with 'all-or-nothing' logic: generate classes for all types in schema or not generate at all.If you have a big schema with huge amount of types but include a few queries only you will get classes for a whole scope of types even if included queries don't use them.
It will be nice to have an ability to generate only the types required according to
includeQueries
/includeMutations
/includeSubscriptions
as it already done for input types (the same way or with additional settings parameter).Beta Was this translation helpful? Give feedback.
All reactions