9

I've been looking at Prisma (Nodejs ORM) and have been wondering how to share the autogenerated TypeScript types with a front-end application. As far as I can tell, the Prisma client auto-generates all DTOs but offers no simple way to export or expose them to other parts of the stack?

Xen_mar
  • 8,330
  • 11
  • 51
  • 74
  • 1
    Are you creating a REST API or a GraphQL one ? On the second hypothesis you can use [graphql-codegen](https://www.graphql-code-generator.com/) – PoC Sep 02 '21 at 09:24

0 Answers0