dotansimha / dotansimha/graphql-code-generator

fragment-matcher generated code is wrongly indented

Open
#6,600 1 comment 0 reactions 0 assignees View on GitHub
core help wanted stage/1-reproduction stage/2-failing-test
Dominant language
TypeScript
Stars
11.3k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
23

Description

**Describe the bug**

When using the fragment-matcher plugin against a graphql server this is the result of the generated code.
![image](https://user-images.githubusercontent.com/86342787/131652272-994e656a-5a95-4125-9e3d-bb720f8d6159.png)

**To Reproduce**
Steps to reproduce the behavior:
use fragment-matcher plugin. Possibly have not fragments to match.

1. My GraphQL schema:

```graphql
# Put your schema here
```

2. My GraphQL operations:

```graphql
# Put your operations here
```

3. My `codegen.yml` config file:

```yml
overwrite: true
schema: "http://localhost:3000/graphql"
documents: null
generates:
src/types/graphql-generated.ts:
plugins:
- "typescript"
- "fragment-matcher"
```

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.