apollographql / apollo-utils

Monorepo of common utilities related to Apollo and GraphQL
MIT License
36 stars 11 forks source link

Better handle errors from the client and detect multiple operations #435

Closed jerelmiller closed 5 months ago

jerelmiller commented 5 months ago

Fixes #431

Better reports errors if they originate from Apollo Client itself rather than throwing an obscure error during the manifest generation. This change also adds detects multiple operations in a single document and will report those as errors.

changeset-bot[bot] commented 5 months ago

🦋 Changeset detected

Latest commit: 864fdef23e3b6997220b75b59cdf47c39e76cc46

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

This PR includes changesets to release 1 package | Name | Type | | ----------------------------------------- | ----- | | @apollo/generate-persisted-query-manifest | 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

codesandbox-ci[bot] commented 5 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

jerelmiller commented 5 months ago

@glasser would love for you to take another look here when you have some time 🙂. Let me know if the latest change alleviates your concerns.