mercurius-cache
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -108,3 +108,3 @@ 'use strict' | ||
if (remoteCache) { | ||
await remoteCache.set(name + '~' + key, JSON.stringify(res)) | ||
await remoteCache.set(name + '~' + key, res) | ||
} | ||
@@ -111,0 +111,0 @@ return res |
{ | ||
"name": "mercurius-cache", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Cache the results of your GraphQL resolvers, for Mercurius", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,3 +12,2 @@ # mercurius-cache | ||
which will also deduplicate the calls. | ||
This | ||
@@ -15,0 +14,0 @@ ## Install |
@@ -577,1 +577,12 @@ 'use strict' | ||
}) | ||
test('using both policy and all options', async (t) => { | ||
const app = fastify() | ||
app.register(mercurius) | ||
app.register(cache, { | ||
all: true, | ||
policy: { Query: { add: true } } | ||
}) | ||
await t.rejects(app.ready()) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33913
1357
94