diff --git a/src/index.tsx b/src/index.tsx index 3f84bcf..aede270 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -7,7 +7,24 @@ import "react-contexify/dist/ReactContexify.css" const client = new ApolloClient({ uri: "/api/graphql", - cache: new InMemoryCache() + cache: new InMemoryCache({ + typePolicies:{ + Query: { + fields: { + files: { + merge(existing, incoming){ + return incoming + } + }, + directorys:{ + merge(existing, incoming){ + return incoming + } + } + } + } + } + }) }) // Disable drag and drop behaviour on document