We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cb939f commit 12c5e03Copy full SHA for 12c5e03
src/http-data-source.ts
@@ -308,9 +308,8 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
308
if (request.method === 'GET') {
309
// Memoize GET calls for the same data source instance
310
// a single instance of the data sources is scoped to one graphql request
311
- const cachedResponse = this.memoizedResults.get(cacheKey)
312
- if (cachedResponse) {
313
- const response = await cachedResponse
+ if (this.memoizedResults.has(cacheKey)) {
+ const response = await this.memoizedResults.get(cacheKey)!
314
response.memoized = true
315
response.isFromCache = false
316
return response
0 commit comments