nestjs-query icon indicating copy to clipboard operation
nestjs-query copied to clipboard

`allowFiltering` in UnPagedRelation has no effect

Open TriPSs opened this issue 2 years ago • 0 comments

Describe the bug When putting allowFiltering to false in UnPagedRelation there is still a filter generated and filtering is still possible.

Have you read the Contributing Guidelines?

Yes

To Reproduce Steps to reproduce the behavior:

  1. Add
@UnPagedRelation('categories', () => DTO, {
  allowFiltering: false,
})
  1. See outputted schema.

Expected behavior When putting allowFiltering to false it should not create a filter and filtering the relation should not be possible.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

"@nestjs-query/core": "^0.30.0",
    "@nestjs-query/query-graphql": "^0.30.0",
    "@nestjs-query/query-typeorm": "^0.30.0",

TriPSs avatar Oct 25 '21 19:10 TriPSs