dotansimha / dotansimha/graphql-code-generator-community

[Flow] __typename not marked a read-only

Open
#117 2 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
137
Forks
195
Avg merge
6h 20m
Merged PRs (30d)
16

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

2. My GraphQL operations:

No operations.

3. 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

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.