dotansimha/graphql-code-generator-community

[Flow] __typename not marked a read-only

Open

#117 geöffnet am 11. März 2021

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (195 Forks)github user discovery
help wanted

Repository-Metriken

Stars
 (136 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide