dotansimha/graphql-code-generator-community

Kotlin plugin does not create __typename property in data class

Open

#131 创建于 2021年6月13日

在 GitHub 查看
 (0 评论) (1 反应) (0 负责人)TypeScript (195 fork)github user discovery
help wanted

仓库指标

Star
 (136 star)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南