dotansimha/graphql-code-generator-community
在 GitHub 查看[Flow] __typename not marked a read-only
Open
#117 创建于 2021年3月11日
help wanted
仓库指标
- Star
- (136 star)
- PR 合并指标
- (PR 指标待抓取)
描述
Describe the bug
To Reproduce Steps to reproduce the behavior:
https://codesandbox.io/s/wizardly-moser-nsrl1?file=/types.js
- My GraphQL schema:
Any schema
- My GraphQL operations:
No operations.
- My
codegen.ymlconfig file:
schema: schema.graphql
documents: document.graphql
generates:
types.js:
plugins:
- flow
- flow-operations
config:
useFlowReadOnlyTypes: true
Expected behavior __typename should be read-only