@pegasusheavy/nestjs-prisma-graphql 1.3.0 → 1.4.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/dist/generate.js +4 -2
- package/dist/generate.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -840,9 +840,11 @@ function inputType(args) {
|
|
|
840
840
|
}
|
|
841
841
|
if (propertySettings) {
|
|
842
842
|
importDeclarations.create({ ...propertySettings });
|
|
843
|
-
} else if (propertyType.some(
|
|
843
|
+
} else if (propertyType.some(
|
|
844
|
+
(p) => typeof p === "string" && p.includes("Prisma.Decimal")
|
|
845
|
+
)) {
|
|
844
846
|
importDeclarations.add("Prisma", config.prismaClientImport);
|
|
845
|
-
} else if (propertyType.some((p) => p.startsWith("Prisma."))) {
|
|
847
|
+
} else if (propertyType.some((p) => typeof p === "string" && p.startsWith("Prisma."))) {
|
|
846
848
|
importDeclarations.add("Prisma", config.prismaClientImport);
|
|
847
849
|
}
|
|
848
850
|
let graphqlType;
|