Skip to content

Commit 91a3d06

Browse files
authored
Set default value for options argument
1 parent a44593c commit 91a3d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const hash = require('object-hash');
22

33
const toSafeObject = obj => JSON.parse(JSON.stringify(obj || {}));
44

5-
function cache(func, options) {
5+
function cache(func, options = {}) {
66
return (root, args, context) => {
77
if (!context.resolverCache) {
88
throw new Error('Missing resolverCache property on the Graphql context.');

0 commit comments

Comments
 (0)