dotansimha/graphql-code-generator-community

[Flow] __typename not marked a read-only

Open

#117 ouverte le 11 mars 2021

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)TypeScript (195 forks)github user discovery
help wanted

Métriques du dépôt

Stars
 (136 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur