TimeZone object type is being generated as String #1321
-
|
I have declared a type names TimeZone in my schema. I'm then using this type in another object type, e.g., Once the code is generated, the timeZone appears as String! I'm wondering why that would be the case and how I could make it to be an Object type. If I declare the type with some prefix, i.e., I'm using version 4.10.5. Also tried the latest. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
This is because we have an implicit type mapping in codegen for this : https://github.com/Netflix/dgs-codegen/blob/master/graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java/TypeUtils.kt#L41 We just merged a PR to fix this, Netflix/dgs-codegen#492, so it will be available in the release on Monday. |
Beta Was this translation helpful? Give feedback.
This is because we have an implicit type mapping in codegen for this : https://github.com/Netflix/dgs-codegen/blob/master/graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java/TypeUtils.kt#L41
We just merged a PR to fix this, Netflix/dgs-codegen#492, so it will be available in the release on Monday.