Docs

GraphQL Ecosystem

Supercharge Your GraphQL Workflow

MockQL provides advanced GraphQL-specific features that let you extend schemas, intercept operations, and simulate responses without changing your backend code.

Extending GraphQL Schema

Add new fields to your existing GraphQL schema without modifying the backend

Original Schema/Query

Schema Definition
type Product {
  id: ID!
  name: String!
  price: Float!
  category: Category!
}

MockQL Extension

Extended Schema
type Product {
  id: ID!
  name: String!
  price: Float!
  category: Category!
  # New fields added via MockQL
  discount: Float @mock(type: "number.float", min: 0, max: 0.5)
  rating: Float @mock(type: "number.float", min: 1, max: 5)
  inStock: Boolean @mock(type: "datatype.boolean")
}

Interactive demo shows how extending graphql schema works in practice

GraphQL-Specific Features

Schema Extensions

Add new fields and types to your GraphQL schema without modifying the backend code.

Query Interception

Intercept and modify GraphQL queries and mutations in transit.

Mock Resolvers

Change Resolver outputs just using types and mock data no code changes required.

Error Simulation

Test how your application handles different GraphQL error scenarios.

Partial Mocking

Mock only specific parts of a response while using real data for the rest.

Request Logging

Track and analyze all GraphQL operations for debugging and performance tuning.

Benefits for GraphQL Developers

Develop Faster

  • Build frontends before backend is ready
  • Iterate on schema designs rapidly
  • Test new features without backend changes

Test More Thoroughly

  • Simulate error cases systematically
  • Test partial query failures
  • Verify subscription behavior

Bridge Team Gaps

  • Unblock frontend teams
  • Validate schema changes collaboratively
  • Prototype without backend dependencies

Ready to transform your GraphQL workflow?

Start building with MockQL today to accelerate your GraphQL development.