dotansimha/graphql-code-generator-community

Kotlin plugin does not create __typename property in data class

Open

#131 geöffnet am 13. Juni 2021

Auf GitHub ansehen
 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)TypeScript (195 Forks)github user discovery
help wanted

Repository-Metriken

Stars
 (136 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide