Skip to main content

Monaco Editor

The query editor is built on Monaco — the same engine behind VS Code — with a GraphQL language worker that provides:
  • Syntax highlighting for GraphQL operations, fields, arguments, and directives
  • Schema-driven autocomplete — press Ctrl+Space to see available fields, arguments, and types based on the live schema
  • Real-time error detection — red underlines and error markers for invalid field names, missing arguments, or type mismatches
  • Bracket matching and auto-closing for braces, parentheses, and strings
  • Multi-cursor editing for batch changes
Autocomplete is schema-aware. As you type inside a Cube (e.g. DEXTrades), only the fields and arguments valid for that Cube appear in the suggestion list.

Editor Panels

The editor area is divided into three tabs at the bottom. Switch between them to configure different parts of your request.

Query Panel

The main editing area where you write GraphQL queries. This is where Monaco’s autocomplete, highlighting, and error detection are active.

Variables Panel

Use the Variables panel to pass JSON variables to parameterized queries. This keeps your queries reusable — change variable values without editing the query text.

Headers Panel

Configure HTTP headers sent with every request. The Headers panel is shown by default with the X-API-KEY header pre-configured.
You can add additional custom headers as needed. All headers are sent as part of the POST request to the GraphQL endpoint.
The Content-Type: application/json header is automatically included — you do not need to set it manually.

Toolbar

The toolbar sits at the top of the editor and provides quick-access actions:

Executing Queries

To execute a query:
  1. Write or load a query into the editor
  2. Set your X-API-KEY in the Headers panel
  3. Click the Execute button (▶) in the toolbar, or press Ctrl/Cmd+Enter
The response appears in the Results Panel on the right side of the editor with full JSON syntax highlighting. If the query contains errors, the error response is displayed with the error message and location details.

Results Panel

The results panel displays the JSON response from the GraphQL endpoint with:
  • Syntax highlighting for JSON keys, strings, numbers, and booleans
  • Collapsible nodes for navigating deeply nested responses
  • Copy response support via right-click context menu
A typical successful response includes a data object matching your query structure, plus an extensions.credits object showing billing information.

Status Bar

The status bar at the bottom of the IDE provides real-time feedback on query execution:
Credit Units (CU) reflect the computational cost of your query. Queries scanning more data or returning larger result sets consume more CU. See Billing & Credits for details.

Keyboard Shortcuts

On macOS, replace Ctrl with Cmd. The IDE automatically detects your operating system and displays the appropriate modifier key.