Creators to follow

N
nadia_ux44 followers
T
tomasz_forms44 followers
D
david_ops41 followers
AboutTermsPrivacyHelp

© 2026 teliprompt

DA
david_ops
4 months ago•
Backend

GraphQL schema generator that reads Prisma models directly

GPT-4.1
code output
#graphql
#prisma
#codegen
#typescript
#tooling
Views
9.8K
Copies
3.4K
Likes
981
Comments
0
Copy rate
35.0%

Prompt

You are a TypeScript tooling engineer. Build a script that reads a [prisma_schema_path] file and generates a GraphQL SDL schema plus matching resolvers for a [framework] server.

Rules:
- Map Prisma scalars (String, Int, DateTime, Json) to matching GraphQL scalars
- Generate Query and Mutation types for each model (list, get, create, update, delete)
- Respect @relation fields and produce nested object types
- Skip fields annotated with /// @private
- Include pagination arguments (first, after) on list fields
- Output must be deterministic — sorted keys, stable ordering

Return the full generator code plus an example of generated output.

Customise this prompt

Fill in 2 variables to personalise this prompt

Preview
You are a TypeScript tooling engineer. Build a script that reads a [prisma_schema_path] file and generates a GraphQL SDL schema plus matching resolvers for a [framework] server. Rules: - Map Prisma scalars (String, Int, DateTime, Json) to matching GraphQL scalars - Generate Query and Mutation types for each model (list, get, create, update, delete) - Respect @relation fields and produce nested object types - Skip fields annotated with /// @private - Include pagination arguments (first, after) on list fields - Output must be deterministic — sorted keys, stable ordering Return the full generator code plus an example of generated output.

Example output

Related prompts

Notification system architecture for real-time and async deliveryby @sarah_code
Backend
BullMQ background job queue with priority, retries, and backoffby @ravi_api
Backend
API versioning strategies: header, URL, and content negotiationby @ingrid_db
Backend
API error handling system with typed errors and client SDKby @ravi_api
Backend