@orion-js/resolvers 3.0.17 → 3.0.36
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/LICENSE +1 -1
- package/lib/resolver/getExecute/getSchema.js +2 -2
- package/package.json +5 -5
package/LICENSE
CHANGED
|
@@ -11,10 +11,10 @@ function default_1(resolverParams) {
|
|
|
11
11
|
const field = (0, clone_1.default)(resolverParams[key]);
|
|
12
12
|
const isArrayOfModel = (0, isArray_1.default)(field.type) && field.type[0].__isModel;
|
|
13
13
|
if (isArrayOfModel) {
|
|
14
|
-
field.type = [field.type[0].
|
|
14
|
+
field.type = [field.type[0].getSchema()];
|
|
15
15
|
}
|
|
16
16
|
else if (field.type.__isModel) {
|
|
17
|
-
field.type = field.type.
|
|
17
|
+
field.type = field.type.getSchema();
|
|
18
18
|
}
|
|
19
19
|
schema[key] = field;
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orion-js/resolvers",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.36",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"upgrade-interactive": "yarn upgrade-interactive"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@orion-js/cache": "^3.0.
|
|
21
|
-
"@orion-js/helpers": "^3.0.
|
|
22
|
-
"@orion-js/schema": "^3.0.
|
|
20
|
+
"@orion-js/cache": "^3.0.36",
|
|
21
|
+
"@orion-js/helpers": "^3.0.36",
|
|
22
|
+
"@orion-js/schema": "^3.0.36"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@shelf/jest-mongodb": "^2.1.0",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "7c921dbbf0ec679df743b9278abbf15cfcbac6ce"
|
|
36
36
|
}
|