dotansimha/graphql-code-generator-community
[Flow] __typename not marked a read-only
开放
#117 创建于 2021年3月11日
help wanted
仓库指标
- 星标
- (136 个星标)
- PR 合并指标
- (平均合并 1天 11小时) (30 天内合并 28 个 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