@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 CHANGED
@@ -838,9 +838,11 @@ function inputType(args) {
838
838
  }
839
839
  if (propertySettings) {
840
840
  importDeclarations.create({ ...propertySettings });
841
- } else if (propertyType.some((p) => p.includes("Prisma.Decimal"))) {
841
+ } else if (propertyType.some(
842
+ (p) => typeof p === "string" && p.includes("Prisma.Decimal")
843
+ )) {
842
844
  importDeclarations.add("Prisma", config.prismaClientImport);
843
- } else if (propertyType.some((p) => p.startsWith("Prisma."))) {
845
+ } else if (propertyType.some((p) => typeof p === "string" && p.startsWith("Prisma."))) {
844
846
  importDeclarations.add("Prisma", config.prismaClientImport);
845
847
  }
846
848
  let graphqlType;