diff --git a/codegen.yml b/codegen.yml index 6fe59ce..dfbd72c 100644 --- a/codegen.yml +++ b/codegen.yml @@ -1,5 +1,5 @@ overwrite: true -schema: "http://api.blog.localhost/graphql" +schema: "http://localhost:7132/graphql" generates: commons/graphql/generated.tsx: plugins: diff --git a/commons/graphql/client.ts b/commons/graphql/client.ts index ec8ca8b..c09a60a 100644 --- a/commons/graphql/client.ts +++ b/commons/graphql/client.ts @@ -1,5 +1,11 @@ import { useMemo } from "react"; -import { ApolloClient, from, HttpLink, InMemoryCache } from "@apollo/client"; +import { + ApolloClient, + from, + HttpLink, + InMemoryCache, + NormalizedCacheObject, +} from "@apollo/client"; import { concatPagination } from "@apollo/client/utilities"; import { equals, mergeDeepWith } from "ramda"; import { onError } from "@apollo/client/link/error"; @@ -11,7 +17,7 @@ export const client = new ApolloClient({ export const APOLLO_STATE_PROP_NAME = "__APOLLO_STATE__"; -let apolloClient: ApolloClient; +let apolloClient: ApolloClient; function createApolloClient() { const httpLink = new HttpLink({