I have a Prisma server running with my data model ...
# orm-help
i
I have a Prisma server running with my data model and I have a TypeScript React SSR app running on top of that. What I was looking for was a way to generate TypeScript types based on the Prisma Data model. I see that
graphqlgen
has been released but I have some problems with it.
Copy code
npm init graphqlgen my-app
cd my-app
npm start
I'm not sure how
graphqlgen
ties into Prisma. It seems to be a replacement for Prisma, as it has it's own server, and a lot more files then only the datamodel file ..
n
graphqlgen
is not a replacement for Prisma, it's "just" a tool that helps you implement your GraphQL resolvers in a type-safe way. It can be used with or without Prisma! You can find more info in the intro blog post: https://www.prisma.io/blog/graphqlgen-fj3s0ssc1jsx