diff --git a/src/Graphql/graphql.module.ts b/src/Graphql/graphql.module.ts index 87d235f..62fa421 100644 --- a/src/Graphql/graphql.module.ts +++ b/src/Graphql/graphql.module.ts @@ -117,7 +117,10 @@ import { isSubscription } from 'rxjs/internal/Subscription' req, me: req ? await graphqlService.acquireContext(req) : null, pubSub: pubsub, - invalidateCache: () => Promise.resolve(), + invalidateCache: () => + graphqlService.invalidateCache( + req?.headers['x-session-id'] as string, + ), }, } },