Skip to content

v0.16.0

Latest
Compare
Choose a tag to compare
@muuki88 muuki88 released this 25 Jan 08:14
· 9 commits to main since this release
37d62dd

Added codeGen directive #93

Added a codeGen directive that is erased during source code generation and
can be used to customize the generated code.

Example - skip code generation

To skip the code generation and provide your own type.

query CodeGenHeroNameQuery {
  hero @codeGen(useType: "Hero") {
    name
  }
}

You can also use the fully qualified class name to avoid clashes

query CodeGenHeroNameQuery {
  hero @codeGen(useType: "com.example.model.Hero") {
    name
  }
}