MockQL provides advanced GraphQL-specific features that let you extend schemas, intercept operations, and simulate responses without changing your backend code.
Add new fields to your existing GraphQL schema without modifying the backend
type Product {
id: ID!
name: String!
price: Float!
category: Category!
}
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
Add new fields and types to your GraphQL schema without modifying the backend code.
Intercept and modify GraphQL queries and mutations in transit.
Change Resolver outputs just using types and mock data no code changes required.
Test how your application handles different GraphQL error scenarios.
Mock only specific parts of a response while using real data for the rest.
Track and analyze all GraphQL operations for debugging and performance tuning.