Preface
What is 'nestjs-query-simple'?
'nestjs-query-simple' is a thin layer built on top of Nestjs-query (plus few other NestJS/MongoDB/GraphQL packages), enabling easy definition of MongoDB/GraphQL aspects within NestJS apps.
Why to use 'nestjs-query-simple'?
- It provides powerful decorators for Entities/DTOs, abstracting away complexities:
- Eliminates the need for multiple decorators while defining MongoDB/GraphQL metadata. With a single class and a solitary decorator per property, all commonly required aspects are addressed (we call this kind of class DATO -
D
ataA
ccess andT
ransferO
bject). - Simplifies entity relationship definitions (one-to-one, one-to-many, many-to-one) through a singular decorator.
- Streamlines the definition of many other MongoDB/GraphQL data aspects.
- Utilizes just four easily comprehensible decorators:
@Dato()
,@DatoProp()
,@Dto()
,@DtoProp()
.
- Eliminates the need for multiple decorators while defining MongoDB/GraphQL metadata. With a single class and a solitary decorator per property, all commonly required aspects are addressed (we call this kind of class DATO -
- It offers valuable helpers and base classes to streamline the creation of common NestJS components like modules and services.