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

貢獻者指南