nestjs

Develop NestJS applications with Drizzle ORM for REST and GraphQL APIs.

322|37|Updated Oct 21, 2025
One-click install
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill nestjs-giuseppe-trisciuoglio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs
Source: https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/skills/nestjs
Command: npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill nestjs-giuseppe-trisciuoglio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide to building scalable NestJS applications with Drizzle ORM, covering modules, controllers, providers, database integration, and patterns for APIs, authentication, and testing.

Core Features & Use Cases

  • Module-driven architecture with controllers, providers, and services
  • Drizzle ORM integration patterns and database access patterns
  • API patterns: REST, GraphQL, OpenAPI docs
  • Testing, microservices, and security integration

Quick Start

Start a new NestJS project, wire Drizzle ORM, and scaffold a basic REST API with a sample entity.

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 with a NestJS application?

Drizzle ORM integrates into NestJS via a dedicated module that wires the database connection, exposes query builders, and connects to your controllers and services. Set up a Drizzle provider in NestJS, inject it into your services, and use it to access Postgres tables across your application's repository and service layers.

Can I build both REST and GraphQL APIs with NestJS and Drizzle ORM?

Yes. NestJS supports both REST and GraphQL API patterns natively. Drizzle ORM works with either: define your schema once, then query it from REST controllers or GraphQL resolvers, using the same services and repositories for data access.

What authentication and authorization patterns work with NestJS?

NestJS provides guards, decorators, and middleware for authentication and authorization. Integrate these with Drizzle ORM by querying user data and permissions from Postgres in your service layer, then applying guards to routes or GraphQL fields to enforce access control.

How do I test NestJS applications with Drizzle ORM integration?

NestJS supports unit and integration testing via Jest. Mock Drizzle services in unit tests, or use test databases and transactions for integration tests. Test your controllers, services, and repository patterns independently, then verify end-to-end API behavior.

Do I need to manage database migrations separately from NestJS?

Drizzle ORM includes migration tools that run independently of NestJS. Define migrations in your schema, generate them with Drizzle's CLI, version them in source control, and run them during deployment or development setup before starting your NestJS application.

What's the best way to structure services and repositories in a module-based NestJS application?

Use NestJS modules to group related controllers, services, and repositories. Each module owns its data access layer via repositories injected into services, which serve controllers or GraphQL resolvers. Drizzle queries live in repositories; business logic lives in services.