dotansimha / dotansimha/graphql-code-generator-community

typescript-graphql-request ignoring importOperationTypesFrom config option

Open
#159 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.