dotansimha/graphql-code-generator-community

Kotlin plugin does not create __typename property in data class

Open

#131 aperta il 13 giu 2021

Vedi su GitHub
 (0 commenti) (1 reazione) (0 assegnatari)TypeScript (195 fork)github user discovery
help wanted

Metriche repository

Star
 (136 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Describe the bug Kotlin types are not generated with a __typename property which breaks resolving union types.

To Reproduce Steps to reproduce the behavior:

  • Generate types using Kotlin plugin
  • I tried adding nonOptionalTypename: true but that had no effect

https://codesandbox.io/s/quizzical-star-wkmfk?file=/codegen.yml

Guida contributor