dotansimha / dotansimha/graphql-code-generator-community

Support custom extensions type in `graphql-request`

Open
#156 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
137
Forks
195
Avg merge
6h 20m
Merged PRs (30d)
16

Description

It would be nice to use a custom `extensions` type in `graphql-request` plugin when the `rawRequest` config is enabled.

**Describe the solution you'd like**
A configuration parameter to change the default `any` type to something else.

**Additional context**
To date, `extensions` is hardcoded as `any`, which is the worst possible type for good static typing. `unknown` would be a great replacement, but changing this is a breaking change. Adding a custom configuration in order to let the user decide is probably a good compromise.

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.