|
|
@@ -1,15 +1,14 @@
|
|
|
-import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
|
+import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|
|
import { APP_INITIALIZER, Injector, NgModule } from '@angular/core';
|
|
|
import { ApolloClientOptions, InMemoryCache } from '@apollo/client/core';
|
|
|
import { setContext } from '@apollo/client/link/context';
|
|
|
import { ApolloLink } from '@apollo/client/link/core';
|
|
|
-import { ApolloModule, APOLLO_OPTIONS } from 'apollo-angular';
|
|
|
+import { APOLLO_OPTIONS, ApolloModule } from 'apollo-angular';
|
|
|
import createUploadLink from 'apollo-upload-client/createUploadLink.mjs';
|
|
|
|
|
|
import { getAppConfig } from '../app.config';
|
|
|
import { introspectionResult } from '../common/introspection-result-wrapper';
|
|
|
import { LocalStorageService } from '../providers/local-storage/local-storage.service';
|
|
|
-import { AddCustomFieldsLink } from './add-custom-fields-link';
|
|
|
|
|
|
import { CheckJobsLink } from './check-jobs-link';
|
|
|
import { getClientDefaults } from './client-state/client-defaults';
|
|
|
@@ -47,13 +46,6 @@ export function createApollo(
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
- Query: {
|
|
|
- fields: {
|
|
|
- products: {
|
|
|
- merge: (existing, incoming) => incoming,
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
},
|
|
|
});
|
|
|
apolloCache.writeQuery({
|
|
|
@@ -69,7 +61,6 @@ export function createApollo(
|
|
|
return {
|
|
|
link: ApolloLink.from([
|
|
|
new OmitTypenameLink(),
|
|
|
- // new AddCustomFieldsLink(injector.get(ServerConfigService)),
|
|
|
new CheckJobsLink(injector),
|
|
|
setContext(() => {
|
|
|
const headers: Record<string, string> = {};
|