3 ways to write to a database

taken from How To GraphQL

Typically, when implementing resolvers and connecting to the database, you have two options - both of which are not very compelling:

- Access the database directly (by writing SQL or using another NoSQL database API)
- Use an ORM that provides an abstraction for your database and lets you access it directly from your programming language

Writing raw SQL from your backend

therefore this option is tedious and error-prone

ORMs

Prisma (ORM+)