Search⌘ K
AI Features

Introduction to Prisma

Explore Prisma, a popular TypeScript ORM that uses schema models to map database tables and defines relationships with fields and attributes. Understand Prisma's client API for type-safe database queries and automatic migrations, enabling efficient backend development with various SQL databases.

Overview of Prisma ORM

Prisma is a popular and stable library with an active community contributing to building TypeScript’s back-end applications. Among the ORMs used in the industry, Prisma happens to be one of the best. It uses regular JavaScript objects and can interact with any SQL database.

TypeScript 3.3.4
// create employee
const new_employee = await prisma.employee.create({
data: {
employee_name: 'Alice',
employee_email: 'alice@prisma.io',
},
})

Features of Prisma

Models

Prisma has a very unique structure. It provides a model that enables a well-outlined structure, defining how our database columns interact with each other. ...