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 a44593c commit 91a3d06Copy full SHA for 91a3d06
src/cache.js
@@ -2,7 +2,7 @@ const hash = require('object-hash');
2
3
const toSafeObject = obj => JSON.parse(JSON.stringify(obj || {}));
4
5
-function cache(func, options) {
+function cache(func, options = {}) {
6
return (root, args, context) => {
7
if (!context.resolverCache) {
8
throw new Error('Missing resolverCache property on the Graphql context.');
0 commit comments