Build HTTP APIs with routing, middleware, validation, controllers, and error handling.
Lessons
Query a typed database client generated by Prisma.
Prisma ORM is easiest to learn by reading the example, changing it, and observing the result.
// npx prisma generate
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
const lessons = await prisma.lesson.findMany({
where: { level: 'beginner' },
orderBy: { id: 'desc' },
take: 10
});
console.log(lessons);Practice the Prisma ORM example in a small scratch file, then explain what changed and why.