graphile / graphile/depth-limit

"'IntrospectionQuery' exceeds operation depth limits" even with all limits set to 1000

Open
#5 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
26
Forks
0
PR merge metrics
No merged PRs in 30d

Description

With every limit set to 1000 I still can't get GraphiQL to successfully make its introspection query.

```
depthLimit({
maxDepth: 1000,
maxListDepth: 1000,
maxSelfReferentialDepth: 1000,
maxIntrospectionDepth: 1000,
maxIntrospectionListDepth: 1000,
maxIntrospectionSelfReferentialDepth: 1000,
revealDetails: true,
})
```

This is the error I'm getting:
_"'IntrospectionQuery' exceeds operation depth limits: field __Type.ofType nested 9 times which exceeds maximum of 8."_

Only way of making it work was to manually add this custom limit:
```
depthLimit({
...
maxDepthByFieldCoordinates: { '__Type.ofType': 1000 }
})
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.