TriPSs / nestjs-query

Easy CRUD for GraphQL.
https://tripss.github.io/nestjs-query/
MIT License
157 stars 43 forks source link

Error: No fields found to create FilterType. #232

Closed blueMountain007 closed 7 months ago

blueMountain007 commented 7 months ago

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:

  1. clone the small reproducible demo repository: https://github.com/xin-ze/nestjs_reproduction/tree/main
  2. select 'main' branch
  3. refer to README.md and execute the code

Expected behavior This error disappears

Screenshots

image

code path: apps/content/src/app/markdown/graphql-types/markdown-activity.ts

image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

TriPSs commented 7 months ago

Hi, checking on my phone but you don't seem to have read the basic examples in the docs as you are providing the entity as a dto. Please read the docs.

The basic example: https://tripss.github.io/nestjs-query/docs/introduction/example

blueMountain007 commented 7 months ago

@TriPSs DTO does not exist in my project. According to my understanding, DTO should be allowed not to exist. Is there any sample code for this scenario? Thanks!