doug-martin / nestjs-query

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

Class incorrectly extends base class CRUDResolver #1562

Open pablom58 opened 1 year ago

pablom58 commented 1 year ago

I am creating a custom resolver but I have a typescript error message in my code editor and I don't know what is the reason.

This is my dto: image

This is my entity class: image

And this is my custom resolver: image

And the error message is: image

I am using webstorm but in vscode I have the same error message. I am working with NX for monorepo, but I already tried to create a simple nest project and the error message is the same.

I am using this documentation

The code works and I can use the queries and mutations, but I don't understand the reason for that error message.

smolinari commented 1 year ago

@pablom58 - What does your module definition look like?

Scott

pablom58 commented 1 year ago

@smolinari

This is my module

image
smolinari commented 1 year ago

Hmm.. Ok. I was hoping you missed the dto definition. That mean, I have no idea what might be the issue.

Btw, this repo is basically abandoned. You can find a repo that is being upkept here:

https://github.com/TriPSs/nestjs-query

And maybe there the Author/ dev (TriPSs) can help you out.

Scott

PavloNaumenko commented 1 year ago

@pablom58 InjectQueryService(TestOne) readonly service: QueryService<TestOneDto> should fix the error. I'm not sure if it's package design error

danjirovec commented 7 months ago

@pablom58 hey, did you ever figure out this issue? It's also happening for me