dotansimha/graphql-code-generator-community

[Flow] __typename not marked a read-only

Aperta

#117 aperta il 11 mar 2021

 (2 commenti) (0 reazioni) (0 assegnatari)TypeScript (195 fork)github user discovery
help wanted

Metriche repository

Star
 (136 stelle)
Metriche merge PR
 (Merge medio 1g 11h) (28 PR mergiate in 30 g)

Descrizione

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

Guida contributor