> ## Documentation Index
> Fetch the complete documentation index at: https://wundergraphinc-auto-improve-queries-with-defer.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Query Plan

> The router allows you to request the query plan and you can view the same in the playground

Include the header `X-WG-Include-Query-Plan` to receive the query plan in the extensions field. The below headers are also useful

`X-WG-Skip-Loader` : Skip requests to subgraph, this will return data as null

`X-WG-Disable-Tracing` : This will ensure that requests for query plan are not traced in the router

Plans for [`@defer` operations](/router/incremental-delivery) include the primary execution and every planned deferred branch. A request that combines `X-WG-Include-Query-Plan: true` with `X-WG-Skip-Loader: true` returns that complete plan in one JSON response with `data: null`; it does not execute subgraphs or require multipart response negotiation.

<Frame caption="Cosmo Studio Playground showing the GraphQL query and its generated query plan">
  <img src="https://mintcdn.com/wundergraphinc-auto-improve-queries-with-defer/ZveBLmfa_f8sUizA/images/router/cosmo-studio-playground-query-plan.png?fit=max&auto=format&n=ZveBLmfa_f8sUizA&q=85&s=25874f755fb204417ec418f8adb2d1b9" alt="Cosmo Studio Playground displaying a GraphQL query alongside its generated query plan." width="1425" height="1847" data-path="images/router/cosmo-studio-playground-query-plan.png" />
</Frame>
