dotansimha/graphql-code-generator-community

[Flow] __typename not marked a read-only

Open

#117 创建于 2021年3月11日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)TypeScript (195 fork)github user discovery
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

  1. My GraphQL schema:

Any schema

  1. My GraphQL operations:

No operations.

  1. My codegen.yml config file:
schema: schema.graphql
documents: document.graphql
generates:
  types.js:
    plugins:
      - flow
      - flow-operations
    config:
      useFlowReadOnlyTypes: true

Expected behavior __typename should be read-only

贡献者指南