dotansimha / dotansimha/graphql-code-generator-community

[typescript-graphql-request] importOperationTypesFrom does nothing

Open
#116 1 comment 7 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 docs for typescript-graphql-request describe that importOperationTypesFrom could be used to import the operations from another file. But whatever I do, it seems to do nothing.

**To Reproduce**
Codesandbox: https://codesandbox.io/s/boring-paper-rsces?file=/codegen.yml

**Additional context**
I made it work with this snipped. Bu I think importOperationTypesFrom should do that for me.

>
> plugins:
> - add:
> content: "import * as Types from './types';"
> - typescript-graphql-request
> config:
> typesPrefix: Types.
>

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.