Skip to content

Commit 753dc40

Browse files
committed
extend limit of recursive directive attaching
1 parent 7a51d5e commit 753dc40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-custom-directives",
3-
"version": "0.2.11",
3+
"version": "0.2.12",
44
"description": "Create custom graphql directives with the ability to hook the execution of graphql",
55
"main": "dist/index.js",
66
"scripts": {

src/custom.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function wrapFieldsWithMiddleware(type, deepWrap = true, typeMet = {}, level = 1
158158
if (field.type._fields && deepWrap) {
159159
wrapFieldsWithMiddleware(field.type, deepWrap, typeMet, level);
160160
} else if (field.type.ofType && field.type.ofType._fields && deepWrap) {
161-
if (level >= 6) {
161+
if (level >= 12) {
162162
continue;
163163
}
164164
wrapFieldsWithMiddleware(

0 commit comments

Comments
 (0)