@omnigraph/soap 1.0.0-alpha-20230424111644-b7c761da0 → 1.0.0-alpha-20230522105300-fe9c79867
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/cjs/executor.js +5 -0
- package/esm/executor.js +5 -0
- package/package.json +3 -3
package/cjs/executor.js
CHANGED
|
@@ -97,6 +97,11 @@ function createRootValue(schema, fetchFn) {
|
|
|
97
97
|
const rootFieldMap = rootType.getFields();
|
|
98
98
|
for (const fieldName in rootFieldMap) {
|
|
99
99
|
const annotations = (0, utils_1.getDirective)(schema, rootFieldMap[fieldName], 'soap');
|
|
100
|
+
if (!annotations) {
|
|
101
|
+
// skip fields without @soap directive
|
|
102
|
+
// we have to skip Query.placeholder field when only mutations were created
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
100
105
|
const soapAnnotations = Object.assign({}, ...annotations);
|
|
101
106
|
rootValue[fieldName] = createRootValueMethod(soapAnnotations, fetchFn);
|
|
102
107
|
}
|
package/esm/executor.js
CHANGED
|
@@ -94,6 +94,11 @@ function createRootValue(schema, fetchFn) {
|
|
|
94
94
|
const rootFieldMap = rootType.getFields();
|
|
95
95
|
for (const fieldName in rootFieldMap) {
|
|
96
96
|
const annotations = getDirective(schema, rootFieldMap[fieldName], 'soap');
|
|
97
|
+
if (!annotations) {
|
|
98
|
+
// skip fields without @soap directive
|
|
99
|
+
// we have to skip Query.placeholder field when only mutations were created
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
97
102
|
const soapAnnotations = Object.assign({}, ...annotations);
|
|
98
103
|
rootValue[fieldName] = createRootValueMethod(soapAnnotations, fetchFn);
|
|
99
104
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnigraph/soap",
|
|
3
|
-
"version": "1.0.0-alpha-
|
|
3
|
+
"version": "1.0.0-alpha-20230522105300-fe9c79867",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@graphql-mesh/types": "1.0.0-alpha-
|
|
7
|
-
"@graphql-mesh/utils": "1.0.0-alpha-
|
|
6
|
+
"@graphql-mesh/types": "1.0.0-alpha-20230522105300-fe9c79867",
|
|
7
|
+
"@graphql-mesh/utils": "1.0.0-alpha-20230522105300-fe9c79867",
|
|
8
8
|
"@graphql-tools/utils": "^9.2.1",
|
|
9
9
|
"graphql": "*"
|
|
10
10
|
},
|