-
-
Notifications
You must be signed in to change notification settings - Fork 114
Description
Is your feature request related to a problem? Please describe.
Using wrapper classes for primitive types incurs a performance cost.
Wrappers are useful to indicate when a value can be null, but if it is declared as non-null (!), we have no reason to use the wrapper type (it's even confusing for readers).
Describe the solution you'd like
Non-null primitive GraphQL types should be mapped to non-wrapped primitive Java types.
Note: For backwards compatibility, we could add a config flag to generate boxed types all the time, but I believe Java's autoboxing/unboxing should actually make this change backwards compatible without the need for a config flag.
Describe alternatives you've considered
Currently, there is no way to customize the generation, AFAICT.
The customTypesMapping argument cannot be used with a ! (at least in Maven).
Additional context
Add any other context or screenshots about the feature request here.