Skip to main content

@InjectTypeOrmQueryService

In the v0.6.x an new decorator was added @InjectTypeOrmQueryService to auto-create a TypeOrm query service. This means you no longer need to manually create a service in order to expose your CRUD endpoints. To enable decorator import the NestjsQueryTypeOrmModule to your module definition
One you have imported the module you can inject a TypeOrmQueryService.

TypeOrmQueryService

In the previous version of @nestjs-query the TypeOrmQueryService translated between the DTO and Entity. For a more in-depth description see #41 In the latest version the TypeOrmQueryService only operates on entities. v0.5.x
v0.6.x

AssemblerQueryService

In previous versions of nestjs-query the QueryService would automatically translate betwen your DTO and database type. This created a soft-dependecy between the persistence service and the view layer. In v0.6.0 AssemblerQueryService was introduced to handle translating between your DTO and persistence type.
Edit this page