Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class incorrectly extends base class CRUDResolver #1562

Open
pablom58 opened this issue Jan 16, 2023 · 5 comments
Open

Class incorrectly extends base class CRUDResolver #1562

pablom58 opened this issue Jan 16, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@pablom58
Copy link

pablom58 commented Jan 16, 2023

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.

@pablom58 pablom58 added the bug Something isn't working label Jan 16, 2023
@smolinari
Copy link
Collaborator

@pablom58 - What does your module definition look like?

Scott

@pablom58
Copy link
Author

@smolinari

This is my module

image

@smolinari
Copy link
Collaborator

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
Copy link

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

@danjirovec
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants