prisma-nestjs-graphql 21.0.0 → 21.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -78,8 +78,6 @@ Default: `@prisma/client`
78
78
 
79
79
  #### `combineScalarFilters`
80
80
 
81
- DOESNT WORK IN v21+
82
-
83
81
  Combine nested/nullable scalar filters to single
84
82
  Type: `boolean`
85
83
  Default: `false`
@@ -764,3 +762,4 @@ import { generate } from 'prisma-nestjs-graphql/generate';
764
762
 
765
763
  - keyof typeof SortOrder -> `SortOrder`
766
764
  - dummy-createfriends.input.ts -> `create-friends`
765
+ - check 'TODO FIXME'
package/generate.cjs CHANGED
@@ -184,7 +184,14 @@ function postBegin(args) {
184
184
  `${modelName}NullableRelationFilter`
185
185
  ]);
186
186
  }
187
- lodash.remove(inputTypes, (inputType) => isContainBogus(inputType.name));
187
+ for (const modelName of modelNames) {
188
+ replaceBogusFilters(`${modelName}ScalarRelationFilter`, [
189
+ `${modelName}NullableScalarRelationFilter`
190
+ ]);
191
+ }
192
+ lodash.remove(inputTypes, (inputType) => {
193
+ return isContainBogus(inputType.name);
194
+ });
188
195
  }
189
196
 
190
197
  function createAggregateInput(args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-nestjs-graphql",
3
- "version": "21.0.0",
3
+ "version": "21.0.1",
4
4
  "license": "MIT",
5
5
  "description": "Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module",
6
6
  "bin": "bin.js",