dotansimha / dotansimha/graphql-code-generator-community

Duplicated 'DocumentNode' import with 'typescript-generic-sdk'

Open
#371 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

### Which packages are impacted by your issue?

`typescript-generic-sdk`

### Describe the bug

Duplicated `DocumentNode` import when `rawRequest` is setted to `true` and `documentMode` is setted to `documentNode`

### Your Example Website or App

https://noexample.com

### Steps to Reproduce the Bug or Issue

Run `graphql-codegen`

### Expected behavior

`DocumentNode` imported once

### Screenshots or Videos

_No response_

### Platform

- OS: Linux
- NodeJS: 18.16.1
- `graphql` version: 15.6.1
- `@graphql-codegen/typescript-generic-sdk` version: 3.1.0

### Codegen Config File

```yaml
schema: schema.graphql
documents: document.graphql
generates:
types.ts:
plugins:
- typescript
- typescript-operations
- typescript-generic-sdk
config:
rawRequest: true
documentMode: documentNode
```

### Additional context

_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.