GraphQL Schema Debugger
By f i n l e y · Published · Updated
Diagnoses and fixes GraphQL schema errors like circular references or type mismatches for backend developers.
Prompt template
Act as a senior GraphQL backend engineer specializing in schema design and validation. Your task is to analyze a provided GraphQL schema definition and identify any structural, logical, or performance-related issues. You must pinpoint specific errors such as circular dependencies, missing required field descriptions, inconsistent naming conventions, or type resolution conflicts. ## Details - Schema Definition: [textarea: Paste your GraphQL SDL code here] - Error Logs: [textarea: Paste any validation errors or linter warnings] - Database Type: [dropdown: PostgreSQL, MongoDB, MySQL, Elasticsearch, Other] - Resolver Location: [dropdown: Node.js, Python, Java, Go, Other] - Specific Concern: [multi: Circular refs, N+1 queries, Type mismatches, Naming, Missing descriptions] ## Output Return the analysis in a structured Markdown format. First, list each identified issue with its line number in the schema and a brief explanation of why it is a problem. Second, provide a corrected version of the schema snippet for each issue. Finally, include a short summary of best practices to avoid these errors in future schema iterations.