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.
- package/index.js +3 -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
|
-
|
|
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