@graphql-codegen/java-resolvers 2.2.11 → 2.2.12-alpha-9d94e917a.0
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 +2 -4
- package/index.mjs +2 -4
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -38,7 +38,7 @@ class JavaResolversVisitor extends visitorPluginCommon.BaseVisitor {
|
|
|
38
38
|
if (this.scalars[type.name.value]) {
|
|
39
39
|
return this.scalars[type.name.value];
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
if (this.config.mappers[type.name.value]) {
|
|
42
42
|
return this.config.mappers[type.name.value].type;
|
|
43
43
|
}
|
|
44
44
|
return this.config.defaultMapper.type;
|
|
@@ -88,9 +88,7 @@ class JavaResolversVisitor extends visitorPluginCommon.BaseVisitor {
|
|
|
88
88
|
if (isInterface) {
|
|
89
89
|
return `default public DataFetcher<${wrappedType}> ${node.name.value}() { return null; }`;
|
|
90
90
|
}
|
|
91
|
-
|
|
92
|
-
return `public DataFetcher<${wrappedType}> ${node.name.value}();`;
|
|
93
|
-
}
|
|
91
|
+
return `public DataFetcher<${wrappedType}> ${node.name.value}();`;
|
|
94
92
|
};
|
|
95
93
|
}
|
|
96
94
|
}
|
package/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ class JavaResolversVisitor extends BaseVisitor {
|
|
|
34
34
|
if (this.scalars[type.name.value]) {
|
|
35
35
|
return this.scalars[type.name.value];
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
if (this.config.mappers[type.name.value]) {
|
|
38
38
|
return this.config.mappers[type.name.value].type;
|
|
39
39
|
}
|
|
40
40
|
return this.config.defaultMapper.type;
|
|
@@ -84,9 +84,7 @@ class JavaResolversVisitor extends BaseVisitor {
|
|
|
84
84
|
if (isInterface) {
|
|
85
85
|
return `default public DataFetcher<${wrappedType}> ${node.name.value}() { return null; }`;
|
|
86
86
|
}
|
|
87
|
-
|
|
88
|
-
return `public DataFetcher<${wrappedType}> ${node.name.value}();`;
|
|
89
|
-
}
|
|
87
|
+
return `public DataFetcher<${wrappedType}> ${node.name.value}();`;
|
|
90
88
|
};
|
|
91
89
|
}
|
|
92
90
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/java-resolvers",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.12-alpha-9d94e917a.0",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating resolvers signature for Java backends",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-codegen/java-common": "^2.1.
|
|
9
|
+
"@graphql-codegen/java-common": "^2.1.19-alpha-9d94e917a.0",
|
|
10
10
|
"@graphql-codegen/plugin-helpers": "^2.4.0",
|
|
11
|
-
"@graphql-codegen/visitor-plugin-common": "2.
|
|
11
|
+
"@graphql-codegen/visitor-plugin-common": "2.9.0-alpha-9d94e917a.0",
|
|
12
12
|
"tslib": "~2.4.0"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|