Closed blueMountain007 closed 8 months ago
Please follow the docs.
You need to change the module to look more like this:
@Module({
exports: [],
imports: [
NestjsQueryGraphQLModule.forFeature({
imports: [TypeOrmModule.forFeature([MarkdownActivity])],
services: [MarkdownActivityService],
resolvers: [
{
DTOClass: YourDTO,
EntityClass: MarkdownActivity,
},
],
}),
],
providers: [
MarkdownActivityResolver,
],
})
export class MarkdownModule {}
@TriPSs Thank you! I have one more question: do I have to declare a DTO class? There is no such concept in the demo code. After rewriting it like this, the error is still reported.
The demo code has been updated and you should be able to reproduce it locally.
Describe the bug A clear and concise description of what the bug is.
Have you read the Contributing Guidelines?
Yes
To Reproduce Steps to reproduce the behavior:
Expected behavior This error disappears
Screenshots
code path: apps/content/src/app/markdown/markdown.module.ts
Desktop (please complete the following information):