dotansimha / dotansimha/graphql-code-generator

The graphql-request typed SDK live example on the frontpage has a wrong configuration

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

Description

Hei,

If you select `graphql-request typed SDK` on the frontpage (https://www.graphql-code-generator.com), `codegen.yml` contains the following configuration:

```yaml
generates:
sdk.ts:
plugins:
- typescript
- typescript-graphql-request
```

But the genererated code `sdk.ts` is missing some important types because the plugin `typescript-operations` is not loaded. The correct configuration should be the following [according to the plugin documentation](https://www.graphql-code-generator.com/plugins/typescript-graphql-request):
```yaml
generates:
sdk.ts:
plugins:
- typescript
- typescript-operations
- typescript-graphql-request
```

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.