Skip to content

CODEGEN-334 - Fix ignoreNoDocuments swallowing all errors, not just no document errors #10338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

eddeee888
Copy link
Collaborator

Description

Related #9172

This PR fixes the issue where ignoreNoDocuments flag catches and swallows all errors such as syntax errors, and not just when no documents can be found. This uses feature implemented in ardatan/graphql-tools#7093

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Unit test

Copy link
Contributor

github-actions bot commented Apr 13, 2025

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-codegen/cli 5.0.6-alpha-20250415141129-37b66fad245f7c16d0eac1fd14cc0c7488f2c83f npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-operations 4.6.1-alpha-20250415141129-37b66fad245f7c16d0eac1fd14cc0c7488f2c83f npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-resolvers 4.5.1-alpha-20250415141129-37b66fad245f7c16d0eac1fd14cc0c7488f2c83f npm ↗︎ unpkg ↗︎
@graphql-codegen/client-preset 4.8.1-alpha-20250415141129-37b66fad245f7c16d0eac1fd14cc0c7488f2c83f npm ↗︎ unpkg ↗︎

Copy link
Contributor

github-actions bot commented Apr 13, 2025

💻 Website Preview

The latest changes are available as preview in: https://pr-10338.graphql-code-generator.pages.dev

Copy link

changeset-bot bot commented Apr 14, 2025

🦋 Changeset detected

Latest commit: 37b66fa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@graphql-codegen/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@eddeee888 eddeee888 force-pushed the fix-ignore-no-doc-issue branch 2 times, most recently from 438aeb7 to 2cac888 Compare April 15, 2025 12:40
@eddeee888 eddeee888 force-pushed the fix-ignore-no-doc-issue branch from 2cac888 to 304cd48 Compare April 15, 2025 12:41
@eddeee888 eddeee888 force-pushed the fix-ignore-no-doc-issue branch from 22b934e to 37b66fa Compare April 15, 2025 14:09
@eddeee888 eddeee888 marked this pull request as ready for review April 15, 2025 14:24
@eddeee888 eddeee888 requested a review from dotansimha April 15, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants