dotansimha / dotansimha/graphql-code-generator

Add documentMode=source

Open
#3,071 1 comment 3 reactions 0 assignees View on GitHub
core kind/enhancement plugins
Dominant language
TypeScript
Stars
11.3k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
23

Description

I currently playing around with graphql-tag and graphql-tag.macro and ask myself. Why isnt there a
documentMode=source. This way I could completely remove graphql as client dependency.

I experimented with documentMode=documentNode but other then graphql-tag it did not generate a source property.

Rather I ask myself, why we need the documentNode? I only need the source to execute the query not the ast of the document node.

So I would like to suggest to add a documentMode=source with generates simply a string with the full source including a fragment for each query.

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.