title: How to generate Kotlin and or Java data model from GraphQL schema
body: <p>My current project has switched to GraphQL API's and I wish to automate the generation of model objects that match both Query/Mutations requests/responses.</p>
  
  <p>All I require is the model classes, I do not want to use tools such as Apollo at runtime in my Application.</p>
  
  <p>I require model classes to be either Java or Kotlin.</p>
  
  <p>I found this <a href="https://www.graphql-java-kickstart.com/tools/schema-definition/" rel="nofollow noreferrer">https://www.graphql-java-kickstart.com/tools/schema-definition/</a></p>
  
  <p>however this appears to require me to create the model classes my self...</p>
  
  <p>based on this statement "<code>GraphQL Java Tools will expect to be given three classes that map to the GraphQL types: Query, Book, and Author. The Data classes for Book and Author are simple:</code>"</p>
  
  <p>What am I missing?</p>
  
  <p>When I attempt use Apollo-cli to download my schema I get this error</p>
  
  <pre><code>~ -  $ npx apollo-cli download-schema $https://my.graphql.end.point/graphql --output schema.json
  Error while fetching introspection query result: only absolute urls are supported
  </code></pre>
  
  <p>Surely this is an basic requirement when employing GraphQL</p>