如何增加strapi graphql中的最大操作深度
这是 Strapi v4 的 graphql Playground 中的问题。 说:
"error": {
"errors": [
{
"message": "'' exceeds maximum operation depth of 7",
"locations": [
{
"line": 19,
"column": 19
}
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED",
"exception": {
"stacktrace": [
...
here is the problem in graphql playground of strapi v4.
says:
"error": {
"errors": [
{
"message": "'' exceeds maximum operation depth of 7",
"locations": [
{
"line": 19,
"column": 19
}
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED",
"exception": {
"stacktrace": [
...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上我发现了问题,这就是解决方案。您只需在 config 文件夹中创建一个文件,然后将其命名为plugins.js。并将这些配置添加到其中。然后将深度限制的值简单地增加到您需要的任何深度级别。
Actually I found the problem and here is the solution. you just need to create a file inside of the config folder and then name it to plugins.js. and add these configuration inside of it. then samply increase the value of depthLimit to any depth level which you need.