Comments (3)
I have to say that I personally do not use assembles, looking at the code I have the feeling that the docs are either missing some information on how to make this work (As I have the feeling the AssemblerQueryService
should be used somewhere).
I would need to take a deeper look into how these parts work before I could help you with the issue.
from nestjs-query.
Yeah. In my POC with assemblers, I got the automation along with the assembler working by extending the AssemblerQueryService
as @TriPSs suggests.
@Assembler(UserDTO, UserEntity)
export class UserAssembler extends ClassTransformerAssembler<UserDTO, UserEntity> {}
@Injectable()
@QueryService(UserDTO)
export class UserService extends AssemblerQueryService<UserDTO, UserEntity> {
constructor (
readonly assembler: UserAssembler,
@InjectQueryService(UserEntity) private readonly userService: QueryService<UserEntity>
) {
super(assembler, userService)
}
And of course, I entered my UserAssember
in the module's assemblers
property .
Seems the AssemblerQueryService
does the work, when you give it the assembler and the pertinent service. Don't ask me how I found that. Haha... I can't remember.
Edit: Yeah, I probably just took a look at this and said to myself, why not just extend it?
https://github.com/TriPSs/nestjs-query/blob/master/packages/core/src/services/assembler-query.service.ts
Scott
from nestjs-query.
Closing, if still an issue please reopen.
from nestjs-query.
Related Issues (20)
- Error: No fields found to create FilterType. HOT 2
- Will FilterableField decorator support array values? HOT 1
- Alias And Field Names In Generated SQL For Aggregate GroupBy Date Are Not Properly Escaped With Quotes HOT 1
- Specified relationName is not honoured for mutations and aggregations HOT 2
- Issue with Remove Relation/set relation to null in Many to One relation
- SetRelationOnEntity failing for many to one relationships HOT 2
- Returning Relay-connection style responses from custom resolvers HOT 5
- Filtering for OR in TypeORM and GraphQL results in AND HOT 3
- Implement schema based multi tenancy HOT 2
- One-to-many Relations is not visible in dto in other services via @ResolveField() HOT 2
- Relation fields in TypeOrm Embedded Entities are always null HOT 6
- UnPagedRelation Setup need help HOT 6
- Need an example in the documentation of how to work with inherited entities HOT 2
- Option to update multiple
- How to Implement Login Route and Secure Routes with JWT Bearer Authentication? HOT 1
- Query method returns empty array while count returns correct number HOT 7
- Missing comma in the example
- Composite primary keys generating an incorrect schema HOT 1
- Problem with cursor paging and sorting by a field with null values HOT 4
- Info received from hasNextPage is wrong in some resolvers HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestjs-query.