diff --git a/datahub-web-react/src/App.tsx b/datahub-web-react/src/App.tsx index c27fc84a0b..39ca3bd343 100644 --- a/datahub-web-react/src/App.tsx +++ b/datahub-web-react/src/App.tsx @@ -48,62 +48,11 @@ const errorLink = onError(({ networkError }) => { const client = new ApolloClient({ connectToDevTools: true, link: errorLink.concat(httpLink), - 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', - ], - }, - }), + cache: new InMemoryCache(), credentials: 'include', defaultOptions: { watchQuery: { - fetchPolicy: 'cache-and-network', + fetchPolicy: 'no-cache', nextFetchPolicy: 'cache-first', }, query: {