Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

Minify documents before adding it to the output#1

Open
Clonex wants to merge 3 commits intostefanoruth:mainfrom
Clonex:main
Open

Minify documents before adding it to the output#1
Clonex wants to merge 3 commits intostefanoruth:mainfrom
Clonex:main

Conversation

@Clonex
Copy link
Copy Markdown

@Clonex Clonex commented Sep 27, 2023

The documentMode DocumentMode.string, causes it to be added as a prettified string. Normally you would change the mode to documentNode to get the documentNode as a JSON object.
This does however not work because graphql-hooks only accepts the document as a string.

@Clonex
Copy link
Copy Markdown
Author

Clonex commented Sep 28, 2023

  • Fix fragments (Seems like the substring doesn't account for the use of fragments)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants