dotansimha / graphql-code-generator-community

MIT License
119 stars 157 forks source link

[Flow] __typename not marked a read-only #117

Open FezVrasta opened 3 years ago

FezVrasta commented 3 years ago

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
FezVrasta commented 3 years ago

Any chance this could be triaged?

Urigo commented 3 years ago

Hi @FezVrasta and thank you for the report

Sorry but I'm not adding a lot here but just labeling it according to our new Contribution Guide and issue flow.

It seems already got into stage 1 thanks to your reproduction! Thank you for that!

Now in order to advance to stage 2 we'll need a failing test, would be great if someone could help progress the issues through the stages.

Thank you and sorry that this comment is not a complete solution (yet).