GraphQL Lens: Query Runner & Schema Explorer Pro 🔮
Instant inline GraphQL query runner, schema introspection explorer, and response studio directly inside Visual Studio Code. Run queries with 1 click without ever opening Altair, Postman, or Insomnia!
✨ Features
▶️ 1-Click Inline Query Execution: CodeLens buttons appear automatically above queries and mutations in .graphql, .gql, or JS/TS template strings. Click to run instantly.
⚡ Interactive Dual-Pane Studio: Side-by-side query editor and JSON response drawer displaying HTTP status code and round-trip execution latency in milliseconds.
🔒 Secure Custom Headers & Tokens: Easily configure bearer tokens, API keys, or custom headers in workspace settings.
📋 1-Click Copy Response: Copy formatted, indented JSON responses with a single click.
🌐 Zero External Dependencies: Completely standalone, lightweight, and fast.
🛠️ Usage
1. Run Query from File
Open any .graphql or .gql file and click the "▶ Run query" CodeLens button above your query, or right-click and choose "GraphQL Lens: Execute Query".
2. Open GraphQL Studio
Run GraphQL Lens: Open Query & Schema Studio from the Command Palette (Ctrl+Shift+P / Cmd+Shift+P).
3. Change GraphQL Endpoint
Run GraphQL Lens: Configure GraphQL Endpoint & Headers... to set your local or remote GraphQL API URL.