From 24470892f010a5954ae10f69b84c7b4720d443b9 Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Wed, 27 Sep 2023 15:18:01 -0700 Subject: [PATCH] Fix TS --- packages/plugins/response-cache/src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/plugins/response-cache/src/index.ts b/packages/plugins/response-cache/src/index.ts index 49314ad692..c3030f13d9 100644 --- a/packages/plugins/response-cache/src/index.ts +++ b/packages/plugins/response-cache/src/index.ts @@ -1,7 +1,6 @@ import { ExecutionResult } from 'graphql'; import { Maybe, Plugin, PromiseOrValue, YogaInitialContext, YogaLogger } from 'graphql-yoga'; import { - createInMemoryCache, defaultBuildResponseCacheKey, BuildResponseCacheKeyFunction as EnvelopBuildResponseCacheKeyFunction, Cache as EnvelopCache, @@ -82,7 +81,7 @@ interface Cache extends EnvelopCache { export function useResponseCache(options: UseResponseCacheParameter): Plugin { const buildResponseCacheKey: BuildResponseCacheKeyFunction = options?.buildResponseCacheKey || defaultBuildResponseCacheKey; - const cache = options.cache ?? (createInMemoryCache() as Cache); + const cache = options.cache ?? (envelopCreateInMemoryCache() as Cache); const enabled = options.enabled ?? (() => true); let logger: YogaLogger; return {