Skip to content

Commit 592d2d3

Browse files
committed
fix: Use loadash instead of object destructure since it doesn't exactly work
1 parent 566f6d2 commit 592d2d3

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const { merge } = require('lodash')
2+
13
/**
24
* Loads GraphQL modules
35
* @exports moduleLoader
@@ -27,7 +29,7 @@ const moduleLoader = modules => {
2729
}
2830

2931
// merge resolvers
30-
resolvers = { ...resolvers, ...mod.schema.resolvers }
32+
merge(resolvers, mod.schema.resolvers)
3133
}
3234
}
3335

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
"semantic-release": "^15.13.16",
4343
"travis-deploy-once": "^5.0.0"
4444
},
45-
"dependencies": {},
45+
"dependencies": {
46+
"lodash": "^4.17.11"
47+
},
4648
"config": {
4749
"commitizen": {
4850
"path": "./node_modules/cz-conventional-changelog"

0 commit comments

Comments
 (0)