Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi Team,
Thank you for your response.
To Clarify you more please consider the below points:
Query depth:The depth is the number of nesting levels of the field.
For example
The following is a query with a depth of 3.
{
a {
b {
c
}
}
}
Like wise, we want to know for Shopify is there any query depth?
The query which we have inquired is of more technical, can you please involve your Dev team and confirm on the details.
Thanks
Solved! Go to the solution
This is an accepted solution.
In my recent encounter with the query depth limit, it's 17. Though I am not entirely sure whether it's the limit of the Storefront API, or the GraphQL client in the @Shopify/storefront-api-client package...
{
errors: {
networkStatusCode: 200,
message: "GraphQL Client: An error occurred while fetching from the API. Review 'graphQLErrors' for details.",
graphQLErrors: [ [Object] ],
response: Response {
[Symbol(realm)]: null,
[Symbol(state)]: [Object],
[Symbol(headers)]: [HeadersList]
}
}
}
Query has a depth of 19, which exceeds the max depth of 17.
This is an accepted solution.
This query might be a little over the top, but it's genuinely necessary data, just gotta identify the problem area & split up the query now...
This is an accepted solution.
In my recent encounter with the query depth limit, it's 17. Though I am not entirely sure whether it's the limit of the Storefront API, or the GraphQL client in the @Shopify/storefront-api-client package...
{
errors: {
networkStatusCode: 200,
message: "GraphQL Client: An error occurred while fetching from the API. Review 'graphQLErrors' for details.",
graphQLErrors: [ [Object] ],
response: Response {
[Symbol(realm)]: null,
[Symbol(state)]: [Object],
[Symbol(headers)]: [HeadersList]
}
}
}
Query has a depth of 19, which exceeds the max depth of 17.
This is an accepted solution.
This query might be a little over the top, but it's genuinely necessary data, just gotta identify the problem area & split up the query now...
what is actually accepted solution?
The OP marked my reply (addendum) to my first reply as an accepted solution as well. This can be confusing but might also provide important context. The top reply of mine is the accepted solution, the max-depth is 17.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024