File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/plugins/response-cache/src Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ import {
1313} from '@envelop/response-cache' ;
1414
1515export type BuildResponseCacheKeyFunction = (
16- params : Omit < Parameters < EnvelopBuildResponseCacheKeyFunction > [ 0 ] , 'context' > ,
16+ params : Omit < Parameters < EnvelopBuildResponseCacheKeyFunction > [ 0 ] , 'context' > & {
17+ request : Request ;
18+ } ,
1719) => ReturnType < EnvelopBuildResponseCacheKeyFunction > ;
1820
1921export type UseResponseCacheParameter = Omit <
@@ -151,6 +153,7 @@ export function useResponseCache(options: UseResponseCacheParameter): Plugin {
151153 variableValues : params . variables ,
152154 operationName : params . operationName ,
153155 sessionId,
156+ request,
154157 } ) ;
155158 operationIdByRequest . set ( request , operationId ) ;
156159 sessionByRequest . set ( request , sessionId ) ;
You can’t perform that action at this time.
0 commit comments