dotansimha/graphql-code-generator-community
在 GitHub 查看Kotlin plugin does not create __typename property in data class
Open
#131 建立於 2021年6月13日
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: truebut that had no effect
https://codesandbox.io/s/quizzical-star-wkmfk?file=/codegen.yml