Execute more than one query per page #32217
Replies: 2 comments 6 replies
-
You would need to adapt your source plugin, not the page queries itself. Because the requested data will be the same independent of where you put it. Is this a custom source plugin or a CMS with a plugin? |
Beta Was this translation helpful? Give feedback.
-
Hello @LekoArts , I am using the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
My graphql queries are executing the limit/quota from my backend CMS, both on the query size in bytes and complexity. I tried to minify the query string but I am still having the issue.
Is there any way to split/execute more than a single query per page? I thought about other alternatives as moving the queries to
gatsby-node
and passing the data via context or even changing it to static queries and executing two different queries but it would require a massive amount of work to restructure all my codebase/pages.Does anyone know if that is possible or what could be another alternative?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions