-
Notifications
You must be signed in to change notification settings - Fork 276
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
[RAV] Remove persisted query link #1512
Conversation
packages/create-sitecore-jss/src/templates/angular/src/app/jss-graphql.module.ts
Show resolved
Hide resolved
packages/create-sitecore-jss/src/templates/react/src/lib/GraphQLClientFactory.js
Show resolved
Hide resolved
packages/create-sitecore-jss/src/templates/vue/src/lib/GraphQLClientFactory.js
Show resolved
Hide resolved
@@ -3,10 +3,8 @@ import { HttpClientModule, HttpHeaders } from '@angular/common/http'; | |||
import { InMemoryCache, NormalizedCacheObject, PossibleTypesMap } from '@apollo/client/core'; | |||
import { Apollo, ApolloModule } from 'apollo-angular'; | |||
import { HttpBatchLink } from 'apollo-angular/http'; | |||
import { createPersistedQueryLink } from 'apollo-angular/persisted-queries'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove apollo-angular/persisted-queries
and sha256
dependencies from package.json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed sha56
but persisted-queries
is a submodule of apollo-angular
which is the primary dependency for apollo.
@@ -2,7 +2,6 @@ | |||
|
|||
import 'cross-fetch/polyfill'; | |||
import { ApolloClient, InMemoryCache } from '@apollo/client'; | |||
import { sha256 } from 'js-sha256'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove @apollo/client/link/persisted-queries
and sha256
dependencies from package.json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed sha56
but persisted-queries
is a submodule of apollo/client
which is the primary dependency for apollo and same for vue.
@@ -1,6 +1,5 @@ | |||
import 'cross-fetch/polyfill'; // Apollo uses `fetch`, which needs a polyfill for node and older browsers. | |||
import { InMemoryCache, ApolloClient } from '@apollo/client/core'; | |||
import { sha256 } from 'js-sha256'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove @apollo/client/link/persisted-queries
and sha256
dependencies from package.json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
The edge delivery endpoint doesn't support Automatic Persisted Queries therefore we have a error on the graphql page. To workaround this issue we need to switch our implementation to use the http batch link queries.
Description / Motivation
Testing Details
Types of changes