feat: add comprehensive GraphQL debug dashboard with VFS inspection #42
+806
β98
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π GraphQL Debug Dashboard
Adds a new comprehensive debug dashboard at
/_nitro/graphql/debugfor inspecting GraphQL setup, resolver exports, and generated virtual modules.β¨ Features
1. Color-Coded Resolver Type Badges
βQuery (blue) - Data fetching operationsβMutation (GraphQL pink) - Data modificationsβ²Type (purple) - Custom type resolvers@Directive (amber) - Special directivesβResolver (emerald) - Combined resolversβ»Subscription (teal) - Real-time data2. Virtual Module Source Code Display
#nitro-internal-virtual/server-schemas#nitro-internal-virtual/server-resolvers#nitro-internal-virtual/server-directives#nitro-internal-virtual/module-config#nitro-internal-virtual/graphql-config3. GraphQL Corporate Branding
4. Comprehensive Statistics
5. Developer Experience
?format=jsonπΈ Screenshots
See the dashboard displaying:
π§ Technical Changes
New Files:
src/routes/debug.ts- Debug dashboard endpointModified Files:
src/index.ts- Register debug route and add startup diagnosticssrc/rollup.ts- AddvirtualDebugInfo()with generated code collectionsrc/virtual.d.ts- AddvirtualModulesfield to debug info typetsdown.config.ts- Add debug route to build entriesπ§ͺ Testing
Tested in:
π Related
Part of ongoing improvements to developer experience and debugging capabilities.
π€ Generated with Claude Code