prisma-nestjs-graphql 17.0.3 → 17.1.0

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.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1341,10 +1341,11 @@ function modelOutputType(outputType2, args) {
1341
1341
  importDeclarations.add("Decimal", "@prisma/client/runtime");
1342
1342
  }
1343
1343
  (0, import_assert3.ok)(property.decorators, "property.decorators is undefined");
1344
- if (settings1?.shouldHideField({
1344
+ const shouldHideField = settings1?.shouldHideField({
1345
1345
  name: outputType2.name,
1346
1346
  output: true
1347
- })) {
1347
+ }) || config.decorate.some((d) => d.name === "HideField" && d.from === "@nestjs/graphql" && d.isMatchField(field.name) && d.isMatchType(outputTypeName));
1348
+ if (shouldHideField) {
1348
1349
  importDeclarations.add("HideField", nestjsGraphql);
1349
1350
  property.decorators.push({
1350
1351
  name: "HideField",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-nestjs-graphql",
3
- "version": "17.0.3",
3
+ "version": "17.1.0",
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
  "main": "index.js",