dotansimha / dotansimha/graphql-code-generator
Generated possible types missing correct indentation
- 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.