dotansimha / dotansimha/graphql-code-generator

Generated possible types missing correct indentation

Open
#7,816 1 comment 0 reactions 0 assignees View on GitHub
core
Dominant language
TypeScript
Stars
11.3k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
23

Description

**Describe the bug**
Generating an empty possible types file
```js

export interface PossibleTypesResultData {
possibleTypes: {
[key: string]: string[]
}
}
const result: PossibleTypesResultData = {
"possibleTypes": {}
};
export default result;

```

**To Reproduce**
Steps to reproduce the behavior:

3. My `codegen.yml` config file:

```yaml
overwrite: true
schema: 'http://localhost:3000/graphql'
documents: ./src/graphql/**/*.ts
generates:
src/types/graphql-generated.ts:
plugins:
- 'fragment-matcher'
```

**Expected behavior**

The code should be indented properly

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.