DEV Community

Create a sample app with TypeScript, React, typeorm, type-graphql. graphql-code-generator while reading "Learning GraphQL"

Hideaki Ishii on January 24, 2021

Recently, I was reading a book Learning GraphQL to learn GraphQL. To understand it deeply, I tried to create a sample app: https://github.com/danim...
Collapse
 
mason42 profile image
Mason

Thank you for this blog post and sharing your project.
Have you tried the ORM prisma.io/ ?
I would be interested to know your opinion about it (Prisma VS TypeORM).

Collapse
 
danimal141 profile image
Hideaki Ishii

Thank you for your reply!

TypeORM uses Decorator definitions for schema definitions and entities in the same class, but this may become complicated when the definitions become complex, and since the DB type depends on Decorator, it may differ from the type of the class definition.

To be honest, I don't have any experience in using Prisma, but it seems like Prisma tries to solve such TypeORM problems :)

There is a migration guild: prisma.io/docs/guides/migrate-to-p...

Collapse
 
sirseanofloxley profile image
Sean Allin Newell

I'd love to see some highlights in code blocks in the article.