Closed soleo closed 9 months ago
Latest commit: e7fddd13adf794d7714935016614069afb1f93cc
The changes in this PR will be included in the next version bump.
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
Resolves #3415
Summary
Contentful GraphQL API started Automatic Persisted Query support recently, https://www.contentful.com/developers/changelog/#automatic-persisted-queries-support-in-the-graphql-api. However, their way to triggering re-fetch for missing persisted query is different from Apollo's implementation.
Contenful: PERSISTED_QUERY_NOT_FOUND as error code https://www.contentful.com/developers/docs/references/graphql/#/reference/automatic-persisted-queries
Apollo:
{ errors: [ { message: 'PersistedQueryNotFound' } ] } https://www.apollographql.com/docs/react/api/link/persisted-queries/
Set of changes
Add new changes for persisted-exchange to support Contentful style error code