Back to prompts
Design a GraphQL schema for [APPLICATION TYPE]. Application context: - What it does: [BRIEF DESCRIPTION] - Main entities: [LIST YOUR CORE DATA MODELS — e.g. User, Product, Order, etc.] - Key relationships: [DESCRIBE HOW ENTITIES RELATE] - Operations needed: - Queries: [LIST WHAT NEEDS TO BE FETCHED] - Mutations: [LIST WHAT NEEDS TO BE CREATED/UPDATED/DELETED] - Subscriptions (if any): [REAL-TIME EVENTS NEEDED] Please provide: 1. Full schema definition in SDL (Schema Definition Language) 2. Key design decisions explained (type choices, nullable fields, pagination approach) 3. Example queries and mutations for the main use cases 4. Resolver structure recommendations 5. Any N+1 problem areas and how to address them (DataLoader suggestions)
How to use this prompt
- 1Copy the prompt using the button above.
- 2Open your AI tool (ChatGPT, Claude, Midjourney, etc.)
- 3Paste and customize any variables in the prompt.
- 4Generate your result.
Tip
Fill every placeholder before you run the prompt. Keep one clear goal per run, then refine with a follow-up if needed.
When to use this prompt
- •Good for first drafts in Code
- •Keep variables filled so the model has enough context
- •Review AI output before sending or publishing