nestjs

Build NestJS APIs with Drizzle ORM for REST and GraphQL servers.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/rizaldiem/digital-invitation-web_V2 --skill nestjs-rizaldiem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs
Source: https://github.com/rizaldiem/digital-invitation-web_V2/tree/main/.windsurf/skills/nestjs
Command: npx skills add https://github.com/rizaldiem/digital-invitation-web_V2 --skill nestjs-rizaldiem

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides clear, production-oriented patterns and operational guidance for building NestJS backend applications and integrating Drizzle ORM so teams avoid common architecture, database, and testing mistakes.

Core Features & Use Cases

  • Module, Controller, Service patterns for clean, testable feature boundaries and dependency injection.
  • Drizzle ORM integration including schema definitions, database service, migrations, and transaction patterns.
  • Authentication and Authorization examples with JWT guards and roles-based access control.
  • Testing & Deployment guidance with unit, integration, and e2e patterns and microservice/GraphQL setups.

Quick Start

Use the nestjs skill to scaffold a NestJS feature module with Drizzle ORM, add a users schema and migration, then create a users service and controller with basic CRUD endpoints.

Frequently Asked Questions about nestjs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Drizzle ORM into a NestJS API for database access?

Integrate Drizzle ORM into a NestJS API by configuring the database service, defining schemas, and setting up migrations. Use transaction patterns and a repository-service-controller structure to ensure scalable and testable database access.

What's the best way to structure a NestJS module with Drizzle ORM for clean architecture?

Structure a NestJS module using dependency injection with clear controller, service, and repository boundaries. This pattern separates Drizzle ORM database operations from business logic, creating testable feature modules for REST and GraphQL servers.

How do I implement JWT authentication and role-based authorization in NestJS?

Implement JWT authentication and role-based authorization in NestJS using guards to protect routes. Apply interceptors to manage access control flows, ensuring secure API endpoints across REST and GraphQL microservices.

Can I use NestJS with Drizzle ORM for microservices and GraphQL setups?

Yes, NestJS with Drizzle ORM supports microservices and GraphQL setups. The patterns apply to scalable architectures, providing operational guidance for testing, deployment, and database access across distributed server environments.

How do I set up DTO validation and testing workflows in a NestJS Drizzle ORM project?

Set up DTO validation using class-validator and establish testing workflows with unit, integration, and e2e patterns. This ensures data integrity and reliable test coverage for NestJS APIs integrated with Drizzle ORM.

Why does my NestJS Drizzle ORM migration workflow fail during schema setup?

NestJS Drizzle ORM migration failures often stem from incorrect schema definitions or database service configuration. Ensure proper transaction patterns and Drizzle configuration to resolve common architecture and database setup mistakes.