dotansimha / dotansimha/graphql-code-generator-community
typescript-graphql-request ignoring importOperationTypesFrom config option
- Dominant language
- TypeScript
- Stars
- 137
- Forks
- 195
- Avg merge
- 6h 20m
- Merged PRs (30d)
- 16
Description
**Describe the bug**
The `typescript-graphql-request` plugin is ignoring `importOperationTypesFrom` config option.
**To Reproduce**
`codegen.yml`:
```yaml
schema: "http://example.com"
documents: "**/*.gql"
generates:
schema.ts:
plugins:
- typescript
- typescript-operations
config:
onlyOperationTypes: true
sdk.ts:
plugins:
- add:
content: "import * as Types from './schema';"
- typescript-graphql-request
config:
importOperationTypesFrom: Types
```
**Expected behavior**
I expect it to prefix operation types with `Types.` but it doesn't.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.