From 5a5ede4b2a95b090a1e784001410c3272d6223c1 Mon Sep 17 00:00:00 2001 From: Lirown Date: Mon, 9 Jul 2018 17:17:46 +0300 Subject: [PATCH] extendind limit from 12 to 24 --- package.json | 2 +- src/custom.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 47e6061..46af419 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "graphql-custom-directives", - "version": "0.2.12", + "version": "0.2.13", "description": "Create custom graphql directives with the ability to hook the execution of graphql", "main": "dist/index.js", "scripts": { diff --git a/src/custom.js b/src/custom.js index 859ef59..d5b1d62 100644 --- a/src/custom.js +++ b/src/custom.js @@ -158,7 +158,7 @@ function wrapFieldsWithMiddleware(type, deepWrap = true, typeMet = {}, level = 1 if (field.type._fields && deepWrap) { wrapFieldsWithMiddleware(field.type, deepWrap, typeMet, level); } else if (field.type.ofType && field.type.ofType._fields && deepWrap) { - if (level >= 12) { + if (level >= 24) { continue; } wrapFieldsWithMiddleware(