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