Back to prompts
Coding & Development

Zero-Downtime REST to GraphQL Schema Synthesizer

Transforms legacy REST API response payloads into strictly typed, performant GraphQL schema definitions and resolvers.

Take the following JSON REST API endpoints and payload responses.

Synthesize a comprehensive, backward-compatible GraphQL schema:
1. Define clear Type, Input, Query, and Mutation definitions with strict non-null assertions where applicable.
2. Group related resource operations and design efficient cursor-based pagination types (Relay specification).
3. Draft TypeScript resolver skeletons utilizing DataLoader patterns to eliminate N+1 query overhead.

REST Payloads:
[INSERT PAYLOADS HERE]