You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When ignoreNoDocuments flag is set to true in the graphql config, the errors from existing files are not shown to the console, and the graphql-codegen command exits with code 0.
The error should be something like expected $, got ). With ignoreNoDocuments: true there is no error but the output files are invalid, with that flag set to false the error is thrown properly.
Expected behavior
The error should be something like expected $, got ). With ignoreNoDocuments: true there is no error but the output files are invalid, with that flag set to false the error is thrown properly.
Which packages are impacted by your issue?
@graphql-codegen/cli
Describe the bug
When
ignoreNoDocuments
flag is set totrue
in the graphql config, the errors from existing files are not shown to the console, and thegraphql-codegen
command exits with code0
.From the docs:
So it seems to ignore errors not only when there are no documents but also when there are documents with errors.
Your Example Website or App
NN
Steps to Reproduce the Bug or Issue
This graphql code is correct:
And this one is not:
The error should be something like
expected $, got )
. WithignoreNoDocuments: true
there is no error but the output files are invalid, with that flag set tofalse
the error is thrown properly.Expected behavior
The error should be something like
expected $, got )
. WithignoreNoDocuments: true
there is no error but the output files are invalid, with that flag set tofalse
the error is thrown properly.Screenshots or Videos
No response
Platform
graphql
version: 15.8.0@graphql-codegen/*
version(s): 5.0.2Codegen Config File
Additional context
NN
The text was updated successfully, but these errors were encountered: