Skip to content

Commit 1af8e25

Browse files
committed
fix to support older versions
1 parent 6312ae3 commit 1af8e25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/custom.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,10 @@ function resolveMiddlewareWrapper(resolve = defaultResolveFn, directives = {}) {
141141
* Scanning the shema and wrapping the resolve of each field with the support
142142
* of the graphql custom directives resolve execution
143143
*/
144-
function wrapFieldsWithMiddleware(type, deepWrap = true, typeMet = {}, level) {
144+
function wrapFieldsWithMiddleware(type, deepWrap = true, typeMet = {}, level = 1) {
145145
if (!type) {
146146
return;
147147
}
148-
level = level || 1;
149148
let fields = type._fields;
150149
typeMet[type.name] = true;
151150
for (let label in fields) {

0 commit comments

Comments
 (0)