nestjs-query-simple
TypeScript icon, indicating that this package has built-in type declarations

5.0.5 • Public • Published

nestjs-query-simple

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 - Data Access and Transfer Object).
    • 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().
  • It offers valuable helpers and base classes to streamline the creation of common NestJS components like modules and services.

Docs

See Nestjs-query-simple website.

Package Sidebar

Install

npm i nestjs-query-simple

Weekly Downloads

57

Version

5.0.5

License

MIT

Unpacked Size

362 kB

Total Files

48

Last publish

Collaborators

  • raanan-choresh