
Prisma ORM
Prisma schema, migrations, Prisma Client, relations, transactions, raw queries
1What is Prisma?
What is Prisma?
Jawaban
Prisma is a next-generation ORM (Object-Relational Mapping) for Node.js and TypeScript that simplifies database access. It generates a type-safe client from the Prisma schema, providing autocompletion and compile-time type checking. Unlike traditional ORMs like TypeORM or Sequelize, Prisma uses a declarative schema file and generates migrations automatically.
2Where to define data models in a Prisma project?
Where to define data models in a Prisma project?
Jawaban
Prisma data models are defined in the schema.prisma file, which is the central configuration file. This file uses the Prisma Schema Language (PSL) to describe the database structure. The Prisma schema also contains the generator configuration (Prisma Client) and datasource configuration (database connection).
3Which command generates the Prisma Client after schema modification?
Which command generates the Prisma Client after schema modification?
Jawaban
The prisma generate command regenerates the Prisma Client based on the current schema. This operation creates or updates the type-safe client in node_modules/@prisma/client. This command must be rerun after each schema.prisma modification for changes to be reflected in TypeScript code. This command runs automatically after npm install.
How to define a required field in a Prisma model?
What is the difference between prisma migrate dev and prisma db push?
+22 pertanyaan wawancara
Topik wawancara Node.js / NestJS lainnya
Node.js Fundamentals
Node.js Core APIs
Asynchronous Programming
Express.js Basics
NestJS Fundamentals
REST API Design
Validation & DTO
API Documentation & Contracts
Error Handling
Unit Testing
Task Scheduling
NestJS Modules & DI
Configuration & Environment Management
JWT Authentication
Authorization & RBAC
Database with TypeORM
Middleware & Interceptors
File Upload
WebSockets
GraphQL with NestJS
End-to-End Testing
Caching with Redis
Queues with Bull
DevOps, Logging & CI/CD
Docker & Containerization
Microservices
Security Best Practices
Performance & Cloud Deployment
Kuasai Node.js / NestJS untuk wawancara berikutnya
Akses semua pertanyaan, flashcards, tes teknis, latihan code review dan simulator wawancara.
Mulai gratis