mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-09 16:03:31 +00:00
fix(blank pages): removing apollo caching (#3008)
This commit is contained in:
parent
93069e5cec
commit
f4a6d18c12
@ -48,62 +48,11 @@ const errorLink = onError(({ networkError }) => {
|
|||||||
const client = new ApolloClient({
|
const client = new ApolloClient({
|
||||||
connectToDevTools: true,
|
connectToDevTools: true,
|
||||||
link: errorLink.concat(httpLink),
|
link: errorLink.concat(httpLink),
|
||||||
cache: new InMemoryCache({
|
cache: new InMemoryCache(),
|
||||||
typePolicies: {
|
|
||||||
Query: {
|
|
||||||
fields: {
|
|
||||||
dataset: {
|
|
||||||
merge(existing, incoming) {
|
|
||||||
return { ...existing, ...incoming };
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dataset: {
|
|
||||||
keyFields: ['urn'],
|
|
||||||
},
|
|
||||||
CorpUser: {
|
|
||||||
keyFields: ['urn'],
|
|
||||||
},
|
|
||||||
Dashboard: {
|
|
||||||
keyFields: ['urn'],
|
|
||||||
},
|
|
||||||
Chart: {
|
|
||||||
keyFields: ['urn'],
|
|
||||||
},
|
|
||||||
DataFlow: {
|
|
||||||
keyFields: ['urn'],
|
|
||||||
},
|
|
||||||
DataJob: {
|
|
||||||
keyFields: ['urn'],
|
|
||||||
},
|
|
||||||
MLFeatureTable: {
|
|
||||||
keyFields: ['urn'],
|
|
||||||
},
|
|
||||||
MLModel: {
|
|
||||||
keyFields: ['urn'],
|
|
||||||
},
|
|
||||||
MLModelGroup: {
|
|
||||||
keyFields: ['urn'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
possibleTypes: {
|
|
||||||
EntityWithRelationships: [
|
|
||||||
'Dataset',
|
|
||||||
'Chart',
|
|
||||||
'Dashboard',
|
|
||||||
'DataJob',
|
|
||||||
'MLFeature',
|
|
||||||
'MLPrimaryKey',
|
|
||||||
'MLModel',
|
|
||||||
'MLModelGroup',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
defaultOptions: {
|
defaultOptions: {
|
||||||
watchQuery: {
|
watchQuery: {
|
||||||
fetchPolicy: 'cache-and-network',
|
fetchPolicy: 'no-cache',
|
||||||
nextFetchPolicy: 'cache-first',
|
nextFetchPolicy: 'cache-first',
|
||||||
},
|
},
|
||||||
query: {
|
query: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user