dotansimha/graphql-code-generator-community

Kotlin plugin does not create __typename property in data class

Open

#131 opened on 2021年6月13日

GitHub で見る
 (0 comments) (1 reaction) (0 assignees)TypeScript (195 forks)github user discovery
help wanted

Repository metrics

Stars
 (136 stars)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド