NestJS GraphQL Zod

JSON →
library 3.4.1 ·javascript
verified Jun 7, 2026

A library (v3.4.1) integrating Zod validation objects into NestJS GraphQL resolvers, reducing boilerplate by generating GraphQL types and schemas automatically from Zod schemas. Supports nested objects, enums, custom names, and custom scalar types. Peer dependencies include @nestjs/graphql >=10, @nestjs/core >=8, zod >=3.15, and class-transformer. Key differentiator: eliminates manual DTO/input type classes, with decorators like @QueryWithZod and @ZodArgs that mirror standard NestJS GraphQL decorators but accept Zod objects. Ships TypeScript types.