admin管理员组文章数量:1022442
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": [
...
the maximum operation exceed in graphQL strapi
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": [
...
the maximum operation exceed in graphQL strapi
Share Improve this question edited Feb 28, 2022 at 14:34 Ahmad Joya asked Feb 28, 2022 at 14:08 Ahmad JoyaAhmad Joya 3771 gold badge4 silver badges10 bronze badges 1- 1 Please edit your question to remove the solution part and post it as an answer – Bergi Commented Feb 28, 2022 at 14:12
1 Answer
Reset to default 7Actually 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.
module.exports = ({ env }) => ({
graphql: {
config: {
endpoint: "/graphql",
shadowCRUD: true,
playgroundAlways: false,
depthLimit: 7,
amountLimit: 100,
apolloServer: {
tracing: false,
},
},
},
});
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": [
...
the maximum operation exceed in graphQL strapi
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": [
...
the maximum operation exceed in graphQL strapi
Share Improve this question edited Feb 28, 2022 at 14:34 Ahmad Joya asked Feb 28, 2022 at 14:08 Ahmad JoyaAhmad Joya 3771 gold badge4 silver badges10 bronze badges 1- 1 Please edit your question to remove the solution part and post it as an answer – Bergi Commented Feb 28, 2022 at 14:12
1 Answer
Reset to default 7Actually 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.
module.exports = ({ env }) => ({
graphql: {
config: {
endpoint: "/graphql",
shadowCRUD: true,
playgroundAlways: false,
depthLimit: 7,
amountLimit: 100,
apolloServer: {
tracing: false,
},
},
},
});
本文标签: javascripthow to increase maximum operation depth in strapi graphqlStack Overflow
版权声明:本文标题:javascript - how to increase maximum operation depth in strapi graphql - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745472350a2152166.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论