@graphql-mesh/runtime 0.96.0 → 0.96.1-alpha-20230731151755-1fb00a173
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/useSubschema.js +3 -2
- package/esm/useSubschema.js +3 -2
- package/package.json +3 -4
package/cjs/useSubschema.js
CHANGED
|
@@ -4,7 +4,6 @@ exports.useSubschema = void 0;
|
|
|
4
4
|
const graphql_1 = require("graphql");
|
|
5
5
|
const core_1 = require("@envelop/core");
|
|
6
6
|
const utils_1 = require("@graphql-mesh/utils");
|
|
7
|
-
const batch_execute_1 = require("@graphql-tools/batch-execute");
|
|
8
7
|
const delegate_1 = require("@graphql-tools/delegate");
|
|
9
8
|
const utils_2 = require("@graphql-tools/utils");
|
|
10
9
|
var IntrospectionQueryType;
|
|
@@ -70,9 +69,11 @@ function getExecuteFn(subschema) {
|
|
|
70
69
|
if (executor == null) {
|
|
71
70
|
executor = (0, delegate_1.createDefaultExecutor)(subschema.schema);
|
|
72
71
|
}
|
|
72
|
+
/*
|
|
73
73
|
if (subschema.batch) {
|
|
74
|
-
|
|
74
|
+
executor = createBatchingExecutor(executor);
|
|
75
75
|
}
|
|
76
|
+
*/
|
|
76
77
|
const transformationContext = {};
|
|
77
78
|
const transformedRequest = (0, utils_1.applyRequestTransforms)(originalRequest, delegationContext, transformationContext, subschema.transforms);
|
|
78
79
|
const originalResult = await executor(transformedRequest);
|
package/esm/useSubschema.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BREAK, execute, visit } from 'graphql';
|
|
2
2
|
import { mapAsyncIterator } from '@envelop/core';
|
|
3
3
|
import { applyRequestTransforms, applyResultTransforms } from '@graphql-mesh/utils';
|
|
4
|
-
import { createBatchingExecutor } from '@graphql-tools/batch-execute';
|
|
5
4
|
import { applySchemaTransforms, createDefaultExecutor, } from '@graphql-tools/delegate';
|
|
6
5
|
import { getDefinedRootType, getOperationASTFromRequest, isAsyncIterable, printSchemaWithDirectives, } from '@graphql-tools/utils';
|
|
7
6
|
var IntrospectionQueryType;
|
|
@@ -67,9 +66,11 @@ function getExecuteFn(subschema) {
|
|
|
67
66
|
if (executor == null) {
|
|
68
67
|
executor = createDefaultExecutor(subschema.schema);
|
|
69
68
|
}
|
|
69
|
+
/*
|
|
70
70
|
if (subschema.batch) {
|
|
71
|
-
|
|
71
|
+
executor = createBatchingExecutor(executor);
|
|
72
72
|
}
|
|
73
|
+
*/
|
|
73
74
|
const transformationContext = {};
|
|
74
75
|
const transformedRequest = applyRequestTransforms(originalRequest, delegationContext, transformationContext, subschema.transforms);
|
|
75
76
|
const originalResult = await executor(transformedRequest);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/runtime",
|
|
3
|
-
"version": "0.96.
|
|
3
|
+
"version": "0.96.1-alpha-20230731151755-1fb00a173",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@graphql-mesh/cross-helpers": "^0.4.0",
|
|
7
|
-
"@graphql-mesh/types": "
|
|
8
|
-
"@graphql-mesh/utils": "
|
|
7
|
+
"@graphql-mesh/types": "0.95.1-alpha-20230731151755-1fb00a173",
|
|
8
|
+
"@graphql-mesh/utils": "0.95.1-alpha-20230731151755-1fb00a173",
|
|
9
9
|
"@graphql-tools/utils": "^9.2.1 || ^10.0.0",
|
|
10
10
|
"graphql": "*",
|
|
11
11
|
"tslib": "^2.4.0"
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"@envelop/extended-validation": "^3.0.0",
|
|
16
16
|
"@graphql-mesh/string-interpolation": "^0.5.1",
|
|
17
17
|
"@graphql-tools/batch-delegate": "^9.0.0",
|
|
18
|
-
"@graphql-tools/batch-execute": "^9.0.0",
|
|
19
18
|
"@graphql-tools/delegate": "^10.0.0",
|
|
20
19
|
"@graphql-tools/wrap": "^10.0.0",
|
|
21
20
|
"@whatwg-node/fetch": "^0.9.0"
|