Your query will be identified by the key: requestContext.operationName. Simply retrieve your query name and use a switch (or if statement) to return false when it matches.
Example:
Ex:
async function shouldReadFromCache(requestContext) {
switch (requestContext.operationName) {
case ‘GET_COMMENTS’:
return false
default:
return true
}
@Roy is it possible to clear the cache for a specific query instead of clearing everything?
Hey @Roy and @lozcozard, Im also looking into using Redis cache and thank you for putting together the library Roy! Just wondering about the same question as @lozcozard, will there be an update to use new libraries because of the deprecation?