prisma-nestjs-graphql 18.0.0 → 18.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.
Files changed (2) hide show
  1. package/index.js +5 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -605,7 +605,11 @@ function getGraphqlInputType(inputTypes, pattern) {
605
605
  return result;
606
606
  }
607
607
  }
608
- if ((countTypes.scalar === 1 || countTypes.enumTypes === 1) && countTypes.fieldRefTypes === 1) {
608
+ if ((countTypes.scalar >= 1 || countTypes.enumTypes >= 1) && countTypes.fieldRefTypes === 1) {
609
+ result = inputTypes.find((x) => (x.location === "scalar" || x.location === "enumTypes") && x.isList);
610
+ if (result) {
611
+ return result;
612
+ }
609
613
  result = inputTypes.find((x) => x.location === "scalar" || x.location === "enumTypes");
610
614
  if (result) {
611
615
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-nestjs-graphql",
3
- "version": "18.0.0",
3
+ "version": "18.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
  "main": "index.js",