When we want to create a system based on a database approach with relational nature then we will use ORM (Object-Relational Mapping). In this article, I will introduce you to a library that helps you build an ORM.


What is Prisma?

Prisma is an open source ORM that helps you build apps faster and make fewer mistakes. Prisma takes a different approach to ORM compared to traditional ORMs. It uses a standard schema definition language (SDL) that automatically writes migrations and generates type-safe code. Prisma consists of the following parts:

  • Prisma Client - It is an auto-generated and type-safe query builder for Node.js and TypeScript. 
  • Prisma Migrate - A migration system.
  • Prisma Studio - GUI for viewing and editing data in the database.


Prisma Client - can be used in any Node.js or TypeScript app. It can be a REST API, GraphQL API, gRPC API or anything else that requires a database.


Are you looking for a contractor working with Prisma ?

How does Prisma work?

Every project using Prisma starts with a Prisma schema file. A Prisma schema allows developers to define application models in an intuitive data modeling language. In such a schema, we usually configure three things:

  • Data Source - Specifies the connection to the database (via an environment variable).
  • Generator - Indicates what you want to generate.
  • Data model - defines the application models.


A data model is a collection of models. A model has two main functions: It represents a table in relational databases or a collection in MongoDB and provides the basis for queries in the Prisma Client API.


Prisma installation

To install Prisme, download the @prisma/client package:

npm install @prisma/client

Our offer

Web development

Find out more

Mobile development

Find out more


Find out more

UX/UI Design

Find out more


Find out more

Related articles

Show all articles