dotansimha / dotansimha/graphql-code-generator

Option to generate array types with brackets instead of `Array` generic.

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

Description

### Is your feature request related to a problem? Please describe.

I am currently working on a project where there's an Array type on the GraphQL schema. This is causing conflicts with the TypeScript `Array` type.

### Describe the solution you'd like

I would like to be able to specify how array types should be generated. Using brackets or, by default, the `Array` type. Something like a `generateArraysWithBrackets: boolean` config flag.

### Describe alternatives you've considered

A different approach to this would be the ability to rename a type when generating data.

### Is your feature request related to a problem? Please describe.

_No response_

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.