Automatically generate Kotlin data classes from Schema #1887
Unanswered
siddheshlatkar
asked this question in
General
Replies: 1 comment
-
Hello 👋 You definitely could write your own plugin to do so (e.g. you could use something like KotlinPoet which we use for our client generator)... but it might be simpler to use Kotlin classes as source of truth and generate schema out of it instead. |
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
-
Is there a utility available to generate Kotlin data classes for ExpediaGroup servers from a GraphQL schema?
Why would we require this utility?
Our repository contains common types in the format of a GraphQL schema. In order to support consumers who utilize the code-first approach through the ExpediaGroup Kotlin library, we need to convert all the pre-existing common types into data classes that are compliant with ExpediaGroup's Kotlin server standards.
Beta Was this translation helpful? Give feedback.
All reactions