Playground API
DocsStatsBlogStudio
Documentation Tree
Technical BlogFeature Deep Dives
  • Introduction
  • Quickstart
    5 min
  • How It Works
  • Recipes & Cookbooks
  • Platform Comparisons
  • Real-World Showcase
  • Interactive Studio
    Studio
  • GraphiQL IDE
    IDE
  • Session Quotas & Activity
  • Network Chaos Simulator
  • Atomic Sandbox Reset
  • Overview & Models
    Hub
  • Users Resource
  • Posts Resource
  • Comments Resource
  • Todos Resource
  • Custom Collections
    Custom
  • Multipart File Uploads
    Upload
  • Dynamic SVG Avatars
    SVG
  • Image Thumbnails
    CDN
  • Relational Filtering
  • Full-Text Search
  • Dynamic Sorting
  • Offset Pagination
  • Cursor Pagination
    Scroll
  • CSV & Excel Export & Import
    IO
  • Custom Collections
    CRUD
  • Overview & Architecture
    Hub
  • JWT Auth Flow
  • Refresh Token Rotation
    Mutex
  • RBAC Permission Matrix
    Roles
  • Expiry Simulation
  • Clock Skew Drift
  • Password Recovery Loop
  • Dual-Mode Sandboxing
  • GraphiQL IDE
    IDE
  • Relational Queries
  • Stateful Mutations
  • Realtime Subscriptions
  • Overview & Flowcharts
    Hub
  • Hosted Checkout
    Stripe
  • Payment Intents API
  • 3DS Challenge Modal
    Modal
  • Customers Vault
  • Charges & Refunds
  • Test Cards Catalog
  • Overview & Channels
    Hub
  • Virtual Email Mailbox
    Mailtrap
  • Virtual SMS Terminal
    Phone
  • In-App Notifications
  • Message Dispatcher
  • Realtime Studio
    Studio
  • Native WebSocket (/ws)
  • Socket.io Gateway
  • Presence & Echo Bot
  • Server-Sent Events (SSE)
    SSE
  • Analytics Telemetry
  • Webhook Subscriptions
  • HMAC SHA-256 Signatures
  • Delivery Logs
  • Manual Retry Simulator
  • Network Latency Delay
  • HTTP Status Codes
  • Rate-Limit Simulator
    429
  • Flaky Network & Jitter
    Chaos
  • Session Quotas & Activity
  • JSON Snapshots
    JSON
  • Headless CI/CD Testing
    CI
  • Mobile QR Code Sync
  • System Metrics & Health
  • Atomic Sandbox Reset
  • Official TypeScript SDK
  • Multi-Language Generators
  • DevTools Extension
  • OpenAPI 3.1 Spec
    JSON
  • Postman Collection v2.1
  • Bruno Collection
  • Insomnia Workspace
  • TypeScript .d.ts
    .d.ts
  • AI Prompt Rules
    Rules
  • Context Index (llms.txt)
  • Full Schema (llms-full.txt)
  • Manifest (product.json)
  • All Feature Articles
    Blog
  • React CRUD Without Backend
    Deep Dive
  • Why Static APIs Fail
  • Mocking Stateful Auth
  • WebSockets & SSE Guide
Technical Blog
Articles

In-depth articles explaining stateful mock APIs, WebSockets, payments, and frontend resilience.

Read Articles
PreviousInteractive Studio
NextSession Quotas & Activity
GraphQL Gateway

GraphiQL Interactive IDE

Execute relational queries, inspect graph relationships, and perform stateful mutations directly against your private visitor session overlay. Zero over-fetching, zero local server setup.

Open Fullscreen IDE

Query & Mutation Presets

Select a preset to load into the live editor
Gateway TerminalPOST /api/v1/graphql
GraphQL Document
Document EditorEditable
1
query GetPostsWithAuthorAndComments {
2
posts(_limit: 3) {
3
id
4
title
5
body
6
user {
7
id
8
name
9
email
10
company {
11
name
12
}
13
}
14
comments {
15
id
16
name
17
body
18
}
19
}
20
}
Execution OutputAwaiting Execution
response.json
1
{
2
// Click "Run Request" above to execute this query against
3
// the live GraphQL gateway and inspect the JSON payload.
4
}

GraphQL Engine Capabilities

Engineered to simulate production-grade GraphQL environments with full relation resolution and state management:

Nested Graph Traversal

Query deep relational graphs in a single round-trip without N+1 problems. Join users, posts, comments, and company profiles effortlessly.

Stateful Sandbox Mutations

Mutations executed via createPost or updateTodo persist immediately in your visitor session overlay.

Full Schema Introspection

Fully compatible with Apollo Client, Relay, and GraphQL Code Generator. Auto-complete, type validation, and schema AST reflection out of the box.

Client Integration Recipes

Copy-paste production implementations for your preferred web framework or GraphQL client:

integration-fetch.ts
1
// Next.js 15+ / React Server Action or Modern Native Fetch
2
const response = await fetch('https://playground.nileslabs.com/api/v1/graphql', {
3
method: 'POST',
4
headers: {
5
'Content-Type': 'application/json',
6
'Accept': 'application/json',
7
// Optional visitor session isolation:
8
// 'x-playground-identity': 'your-session-uuid',
9
},
10
body: JSON.stringify({
11
query: query GetPostsWithAuthorAndComments {
12
posts(_limit: 3) {
13
id
14
title
15
body
16
user {
17
id
18
name
19
email
20
company {
21
name
22
}
23
}
24
comments {
25
id
26
name
27
body
28
}
29
}
30
},
31
variables: {}
32
}),
33
});
34
35
const { data, errors } = await response.json();
36
if (errors) console.error('GraphQL Errors:', errors);
37
console.log('Result:', data);