Juan B
01/06/2022, 7:12 AMShane Myrick
01/06/2022, 6:25 PMextends
keyword with the @extends
directive: https://github.com/ExpediaGroup/graphql-kotlin/blob/fac1e41914f6a8a0a494082752a4e3[…]xpediagroup/graphql/examples/federation/extend/schema/Widget.ktJuan B
01/06/2022, 6:30 PMJuan B
01/06/2022, 6:55 PMShane Myrick
01/07/2022, 12:10 AMextend
key word. If we wanted to add support it would have to look like that example you linked to for the library graphql-java-annotations
since we can't have a type with the same name.
I recommend that a feature request be added and PRs are always welcome fore review.
The quick alternative is that you can manually extend the type with extra fields using the hooks but obviously that is not as simpleJuan B
01/07/2022, 12:30 AMShane Myrick
01/07/2022, 4:56 PMwillAddGraphQLTypeToSchema
where you can look at the KClass and the current generated type and modify it to add another field based off of some other class that you can do a find using the class scanner that has some annotation and that KClass
as the argument
https://github.com/ExpediaGroup/graphql-kotlin/blob/fac1e41914f6a8a0a494082752a4e3[…]om/expediagroup/graphql/generator/hooks/SchemaGeneratorHooks.kt