dotansimha/graphql-code-generator-community

[Flow] __typename not marked a read-only

Open

#117 opened on 2021年3月11日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)TypeScript (195 forks)github user discovery
help wanted

Repository metrics

Stars
 (136 stars)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド