dotansimha/graphql-code-generator
View on GitHubfragment-matcher generated code is wrongly indented
Open
#6,600 opened on Sep 1, 2021
corehelp wantedstage/1-reproductionstage/2-failing-test
Repository metrics
- Stars
- (10,341 stars)
- PR merge metrics
- (Avg merge 46d 1h) (11 merged PRs in 30d)
Description
Describe the bug
When using the fragment-matcher plugin against a graphql server this is the result of the generated code.

To Reproduce Steps to reproduce the behavior: use fragment-matcher plugin. Possibly have not fragments to match.
- My GraphQL schema:
# Put your schema here
- My GraphQL operations:
# Put your operations here
- My
codegen.ymlconfig file:
overwrite: true
schema: "http://localhost:3000/graphql"
documents: null
generates:
src/types/graphql-generated.ts:
plugins:
- "typescript"
- "fragment-matcher"