Build an Orders API in NestJS: Nested Prisma Writes and Server-Side Totals E-10
24 min603 views
About this video
A store is not a store until someone can buy something. This episode builds orders, and it puts the money math where it belongs: on the server.
We migrate the Order and OrderItem models, build CreateOrderDto with nested validation, and write an OrdersService that computes totals server-side inside a single Prisma nested write, so an order and its items are created atomically. Ownership-checked reads round it out, all behind auth-guarded routes.
Subscribe to Code with Jay and keep going.
Keep learning NestJS
Every free video, mini course and project-based course on NestJS in one place, in the order that makes sense.
More free videos
All videos
Duration 22:30NestJSBuilding a Products REST API in NestJS: From Database to JSON Response: E-4
525 views · Aug 1, 2026
Duration 1:20:41NestJSHow to Build an AI Shopping Agent with NestJS (Tool Calling + Guardrails) – Ep 13
746 views · Oct 18, 2026
Duration 1:13:03NestJSBuild AI Chat with Semantic Search in NestJS (Streaming + Smart Router) – Ep 12
659 views · Oct 11, 2026
Duration 32:31NestJSSemantic Search with OpenSearch & Embeddings in NestJS (Step by Step) – Ep 11
748 views · Oct 4, 2026
Duration 18:52NestJSNestJS Auth Part 3: Roles Decorator, RolesGuard and Seller-Only Routes: E9
811 views · Sep 20, 2026
Duration 45:47NestJSNestJS Unit Testing with Jest: Mock PrismaService and Test JWT Auth e8
1K views · Sep 6, 2026
