▸case-17 Prepare a production security checklist for exposed GraphQL endpoints. Specify how schema introspection, GraphQL Playground, and cross-origin resource sharing should be configured in production environments. | pass→pass | 18,938 | 16,444 | -13% | 1 | 1 | 0% | 3,083 | 3,909 | +27% | 0 | 0 | — |
▸case-01 We are restructuring our enterprise platform into federated services covering user profiles, inventory, and order processing. Can you draft a technical blueprint that includes SDL definitions for each subgraph service, outlines entity key cross-references, and details the schema composition model for our central gateway? | pass→pass | 25,779 | 16,295 | -37% | 1 | 1 | 0% | 4,913 | 4,395 | -11% | 0 | 0 | — |
▸case-02 Our production GraphQL API is experiencing high latency and database strain due to nested list queries. Please review our architecture and generate a comprehensive performance remediation plan detailing data fetching batching strategies, query complexity guardrails, and caching recommendations in a structured report. | pass→pass | 34,495 | 31,416 | -9% | 1 | 1 | 0% | 4,116 | 4,224 | +3% | 0 | 0 | — |
▸case-03 We are launching a multi-tenant API gateway and need a robust security blueprint for our GraphQL layer. Please create a guide that outlines field-level access control patterns, rate-limiting approaches based on query execution costs, and contextual authentication handling for context middleware. | pass→pass | 34,401 | 24,670 | -28% | 1 | 1 | 0% | 6,192 | 5,670 | -8% | 0 | 0 | — |
▸case-04 We are building a legacy RESTful microservice for order tracking. Design the REST API endpoints using OpenAPI standard conventions, including HTTP method mappings, URL path structures, status codes, and JSON response bodies. | pass→fail | 20,333 | 18,245 | -10% | 1 | 1 | 0% | 4,488 | 5,221 | +16% | 0 | 0 | — |
▸case-05 We need to optimize a PostgreSQL database table schema for an e-commerce catalog. Provide SQL DDL for indexing foreign keys, composite B-tree indexes for filtering, and query explain execution plans. | pass→pass | 20,619 | 16,490 | -20% | 1 | 1 | 0% | 4,144 | 4,405 | +6% | 0 | 0 | — |
▸case-06 We are implementing client-side state management in a React web application using Redux Toolkit. Create a Redux slice with async thunks, reducers, and selectors for managing offline cart state. | pass→pass | 19,037 | 16,378 | -14% | 1 | 1 | 0% | 4,088 | 4,832 | +18% | 0 | 0 | — |
▸case-07 We are defining subgraphs in Apollo Federation v2 where both the User subgraph and the Order subgraph need to express the User entity. We want both subgraphs to resolve the user's basic email address field directly without routing requests back to the primary user service. Show the proper directives for both subgraphs. | pass→pass | 12,420 | 22,962 | +85% | 1 | 1 | 0% | 1,520 | 2,878 | +89% | 0 | 0 | — |
▸case-18 Our legacy backend exposes dozens of microservice REST endpoints. Detail an orchestration pattern in GraphQL that wraps these REST APIs without rewriting the underlying services, avoiding latency spikes from sequential fetch chains. | pass→pass | 21,047 | 18,734 | -11% | 1 | 1 | 0% | 3,437 | 4,409 | +28% | 0 | 0 | — |
▸case-08 In an Apollo Federation v2 schema, our Shipping subgraph needs to calculate estimated delivery cost for an Order entity. The calculation depends on the order's total weight and shipping postal code, which are fields owned by the Order subgraph. Show how the Shipping subgraph defines the extended Order entity and field directives to declare this field dependency. | pass→pass | 9,161 | 6,650 | -27% | 1 | 1 | 0% | 1,492 | 2,340 | +57% | 0 | 0 | — |
▸case-09 Our Node.js GraphQL resolver fetches author details individually for each book in a list query, causing 100 database queries for 100 books. Model a batch loading function using DataLoader that consolidates key lookups into a single SQL IN query and maps them back to the requested order. | pass→pass | 11,960 | 10,778 | -10% | 1 | 1 | 0% | 2,151 | 3,069 | +43% | 0 | 0 | — |
▸case-10 Design a schema-first SDL type definition for paginating a collection of Products following the Relay GraphQL Cursor Connections Specification. Ensure standard naming for connection, edge, and page information types. | pass→pass | 9,005 | 9,454 | +5% | 1 | 1 | 0% | 1,827 | 3,208 | +76% | 0 | 0 | — |
▸case-11 We want to protect our GraphQL endpoint from deeply nested expensive queries that could crash our servers. Implement a query complexity estimation rule in JavaScript that assigns point costs to fields and dynamic multipliers to list arguments. | pass→pass | 22,786 | 17,554 | -23% | 1 | 1 | 0% | 3,925 | 4,682 | +19% | 0 | 0 | — |
▸case-12 Our mobile client sends large GraphQL query strings over HTTP GET, hitting HTTP header length limits. Outline the protocol handshake sequence for Automatic Persisted Queries (APQ) between client and gateway when a query hash is sent for the first time versus subsequent requests. | pass→pass | 13,916 | 13,228 | -5% | 1 | 1 | 0% | 2,647 | 3,732 | +41% | 0 | 0 | — |
▸case-13 We need field-level access control in our GraphQL schema so that normal users cannot read sensitive fields like socialSecurityNumber or internalAdminNotes on a User type. Show how to implement a custom schema directive or middleware resolver wrapper that verifies JWT roles from the request context. | pass→pass | 16,258 | 19,933 | +23% | 1 | 1 | 0% | 3,185 | 5,002 | +57% | 0 | 0 | — |
▸case-14 Configure a real-time order tracking GraphQL subscription setup. Detail the transport lifecycle and client-server connection initialization payload handling over WebSockets using modern graphql-ws protocol. | pass→pass | 19,960 | 18,753 | -6% | 1 | 1 | 0% | 4,004 | 4,895 | +22% | 0 | 0 | — |
▸case-15 We are replacing an old user field named 'fullName' with 'displayName' in our enterprise schema. Write the SDL field definition incorporating standard GraphQL deprecation practices and explain how schema usage metrics guide the eventual removal. | pass→pass | 12,123 | 11,133 | -8% | 1 | 1 | 0% | 1,914 | 2,937 | +53% | 0 | 0 | — |
▸case-16 We need to query a unified activity feed returning posts, comments, and system notifications. The feed items share common fields like id and createdAt, but notifications have unique payload fields. Define the SDL using GraphQL interfaces or unions to ensure type-safe polymorphic querying. | pass→pass | 11,722 | 11,206 | -4% | 1 | 1 | 0% | 2,204 | 3,211 | +46% | 0 | 0 | — |
▸case-19 Set up an automated schema validation step in a CI/CD pipeline to prevent breaking changes (like removing fields or changing return types) from merging into main. What tooling approach and validation rule check is used? | pass→pass | 14,228 | 12,053 | -15% | 1 | 1 | 0% | 2,241 | 3,329 | +49% | 0 | 0 | — |
▸case-20 We need to accept validated email addresses and positive monetary amounts in our GraphQL mutations. Define custom GraphQL scalar types in SDL and show how serialize, parseValue, and parseLiteral methods validate inputs. | pass→pass | 14,322 | 10,675 | -25% | 1 | 1 | 0% | 2,894 | 3,237 | +12% | 0 | 0 | — |
▸case-21 In an Apollo Federation v2 setup, when a subgraph needs to resolve entity fields for a User entity owned by another subgraph, should it make direct HTTP requests to the User subgraph from inside its resolvers, or define entity representations with reference resolvers? | pass→pass | 13,732 | 10,453 | -24% | 1 | 1 | 0% | 2,246 | 3,002 | +34% | 0 | 0 | — |
▸case-22 Prevent malicious users from crashing our server with deeply nested cyclic queries like user -> friends -> friends -> friends. Construct a validation rule function or middleware that inspects the query Abstract Syntax Tree (AST) to measure dynamic depth. | pass→pass | 19,635 | 15,364 | -22% | 1 | 1 | 0% | 3,744 | 4,193 | +12% | 0 | 0 | — |