doug-martin / nestjs-query

Easy CRUD for GraphQL.
https://doug-martin.github.io/nestjs-query
MIT License
819 stars 142 forks source link

Abstract resolvers #1140

Open thehappycoder opened 3 years ago

thehappycoder commented 3 years ago

I've got an abstract BaseUserDTO that is extended by UserDTO and AuthorDTO. Both of these DTOs need the same @ResolveField-s. I attempted to create an abstract resolver but couldn't get it used by UserResolver and AuthorResolver.

smolinari commented 3 years ago

@thehappycoder - This might be better as a discussion?

Scott