Prompt
0 copies · 0 said it worked
Review and shape a GraphQL API design for production
A checklist-style prompt that guides design, schema evolution, performance, and observability decisions for a GraphQL API as a platform engineer would.
People use this for
- graphql api design review
- graphql schema checklist for platform teams
- how do i review a graphql schema before production
- graphql schema evolution and deprecation strategy
- design a production graphql api with pagination and performance limits
Imported on Nov 29, 2026 from GraphQL API taste . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Prompt
# GraphQL API taste of a platform engineer - Design the schema around client use cases and domain language, not around database tables. Confidence: 0.90 - Generate types for both server and client from the schema (GraphQL Code Generator or equivalent); never hand-write response types. Confidence: 0.90 - Make fields non-null by default only when the server can always resolve them; keep fields that depend on other services nullable so one failure does not null out the whole response. Confidence: 0.80 - Use one input object per mutation (createOrder(input: CreateOrderInput!)) and return a payload type, not the bare entity. Confidence: 0.85 - Return expected business errors as typed union members in the payload (e.g. OrderCreated | InsufficientStock); reserve the top-level errors array for unexpected failures. Confidence: 0.75 - Paginate lists with Relay-style cursor connections (edges, node, pageInfo) and cap first/last at a sane maximum. Confidence: 0.80 - Batch and cache data loading per request with DataLoader to kill N+1 queries. Confidence: 0.95 - Enforce query depth and complexity limits at the gateway. Confidence: 0.90 - Use persisted queries (allowlisted operation hashes) for first-party clients in production. Confidence: 0.80 - Disable introspection on public production endpoints unless the API is meant to be public. Confidence: 0.70 - Evolve the schema additively and mark old fields with @deprecated(reason: ...); never version the endpoint with /v2. Confidence: 0.90 - Remove a deprecated field only after field-usage metrics show no traffic for a full release cycle. Confidence: 0.85 - Run schema diff checks in CI and fail the build on breaking changes. Confidence: 0.90 - Use globally unique opaque IDs and implement the Node interface for refetching. Confidence: 0.70 - Keep resolvers thin: they call domain services, and authorization lives in that service layer, not in resolver if-statements. Confidence: 0.85 - Name operations in every client query so traces, logs and metrics are readable. Confidence: 0.90 - Colocate fragments with the UI components that use them. Confidence: 0.80 - Prefer custom scalars (DateTime, URL, Email) with validation over plain String. Confidence: 0.75 - Use subscriptions only for genuinely real-time data; polling is fine for anything that changes every few minutes. Confidence: 0.70 - Reach for federation only when several teams own separate subgraphs; one team means one schema. Confidence: 0.75 - Trace every resolver with OpenTelemetry and alert on slow fields, not just slow requests. Confidence: 0.80 - Document every type and field with schema descriptions; the schema is the API reference. Confidence: 0.85
No result recorded for this import yet. Tried it? File a report so the next person knows how it went.
Tried it
Structured reports from people who ran this prompt. They roll up into the per-model badges above.
No one has filed a report yet. Try the prompt and be the first.
Related prompts
- Expert agent role for designing REST, GraphQL, and gRPC APIs into a tracked TODO plan
A senior API design expert role that guides designing RESTful, GraphQL, or gRPC APIs covering conventions, security, versioning, errors, and docs, with output written as checkable tasks in TODO_api-design-expert.md.
Coding · @wkaandemir
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Master prompt for building a district campaign field operations platform
A long master development prompt asking an AI to build a full-stack government district campaign management, field data collection, verification, and payment platform.
Coding · @maarifkhatri91
- Backend architect role for designing scalable server-side systems
A system-style role prompt that makes the model act as a senior backend architect, producing task-tracked Markdown plans covering APIs, databases, security, performance, and DevOps for server-side systems.
Coding · @wkaandemir
- Build a native macOS music app with synced lyrics and cinematic modes
A phased engineering brief for a SwiftUI/AppKit macOS app called MusicLock, with the output being a phase-gated plan and implementation guidance across architecture, media integration, and distribution.
Coding · @nithish6111
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.