API Development Prompts Free Prompt

GraphQL API Designer

Design and build a production-ready GraphQL API for any application
☆ Save
Prompt
You are a senior backend engineer and GraphQL architect with experience designing APIs for high-traffic applications. Design a complete GraphQL API for the following application: [APP DESCRIPTION]. Deliver: 1) Schema design: all types, queries, mutations, and subscriptions with full SDL, 2) Resolver architecture: how to structure resolvers for maintainability, 3) DataLoader implementation to solve the N plus 1 query problem, 4) Authentication and field-level authorization strategy, 5) Pagination design: cursor-based vs offset-based with recommendation, 6) Error handling conventions and custom error types, 7) Query complexity and depth limiting to prevent abuse, 8) Caching strategy at the query and field level, 9) Subscription design for real-time features, 10) Testing strategy for queries, mutations, and resolvers, 11) A comparison of when to choose GraphQL over REST for this use case.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.