@graphql-tools/delegate 8.6.1 → 8.7.0-alpha-a000c553.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 +4 -8
- package/index.mjs +5 -9
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1243,21 +1243,17 @@ function getExecutor(delegationContext) {
|
|
|
1243
1243
|
return executor;
|
|
1244
1244
|
}
|
|
1245
1245
|
const createDefaultExecutor = utils.memoize1(function createDefaultExecutor(schema) {
|
|
1246
|
-
const
|
|
1246
|
+
const executorInstance = new graphqlExecutor.Executor({ schema });
|
|
1247
1247
|
return function defaultExecutor(request) {
|
|
1248
|
-
const operationAst = utils.getOperationASTFromRequest(request);
|
|
1249
1248
|
const executionArgs = {
|
|
1250
|
-
schema,
|
|
1251
1249
|
document: request.document,
|
|
1250
|
+
rootValue: request.rootValue,
|
|
1252
1251
|
contextValue: request.context,
|
|
1253
1252
|
variableValues: request.variables,
|
|
1254
|
-
rootValue: request.rootValue,
|
|
1255
1253
|
operationName: request.operationName,
|
|
1254
|
+
enableIncremental: true,
|
|
1256
1255
|
};
|
|
1257
|
-
|
|
1258
|
-
return graphql.subscribe(executionArgs);
|
|
1259
|
-
}
|
|
1260
|
-
return executor.execute(executionArgs);
|
|
1256
|
+
return executorInstance.execute(executionArgs);
|
|
1261
1257
|
};
|
|
1262
1258
|
});
|
|
1263
1259
|
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kind, isAbstractType, isInterfaceType, TypeInfo, visit, visitWithTypeInfo, getNamedType, isObjectType, versionInfo, TypeNameMetaFieldDef, responsePathAsArray, GraphQLError, locatedError, getNullableType, isCompositeType, isListType, typeFromAST, defaultFieldResolver, validate
|
|
1
|
+
import { Kind, isAbstractType, isInterfaceType, TypeInfo, visit, visitWithTypeInfo, getNamedType, isObjectType, versionInfo, TypeNameMetaFieldDef, responsePathAsArray, GraphQLError, locatedError, getNullableType, isCompositeType, isListType, typeFromAST, defaultFieldResolver, validate } from 'graphql';
|
|
2
2
|
import { memoize2, implementsAbstractType, getRootTypeNames, getDefinedRootType, createVariableNameGenerator, updateArgument, serializeInputValue, inspect, collectFields, relocatedError, AggregateError, getResponseKeyFromInfo, isAsyncIterable, mapAsyncIterator, getOperationASTFromRequest, memoize1 } from '@graphql-tools/utils';
|
|
3
3
|
import { Executor } from 'graphql-executor';
|
|
4
4
|
import { ValueOrPromise } from 'value-or-promise';
|
|
@@ -1239,21 +1239,17 @@ function getExecutor(delegationContext) {
|
|
|
1239
1239
|
return executor;
|
|
1240
1240
|
}
|
|
1241
1241
|
const createDefaultExecutor = memoize1(function createDefaultExecutor(schema) {
|
|
1242
|
-
const
|
|
1242
|
+
const executorInstance = new Executor({ schema });
|
|
1243
1243
|
return function defaultExecutor(request) {
|
|
1244
|
-
const operationAst = getOperationASTFromRequest(request);
|
|
1245
1244
|
const executionArgs = {
|
|
1246
|
-
schema,
|
|
1247
1245
|
document: request.document,
|
|
1246
|
+
rootValue: request.rootValue,
|
|
1248
1247
|
contextValue: request.context,
|
|
1249
1248
|
variableValues: request.variables,
|
|
1250
|
-
rootValue: request.rootValue,
|
|
1251
1249
|
operationName: request.operationName,
|
|
1250
|
+
enableIncremental: true,
|
|
1252
1251
|
};
|
|
1253
|
-
|
|
1254
|
-
return subscribe(executionArgs);
|
|
1255
|
-
}
|
|
1256
|
-
return executor.execute(executionArgs);
|
|
1252
|
+
return executorInstance.execute(executionArgs);
|
|
1257
1253
|
};
|
|
1258
1254
|
});
|
|
1259
1255
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/delegate",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.0-alpha-a000c553.0",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@graphql-tools/schema": "8.3.5",
|
|
12
12
|
"@graphql-tools/utils": "8.6.5",
|
|
13
13
|
"dataloader": "2.0.0",
|
|
14
|
-
"graphql-executor": "0.0.
|
|
14
|
+
"graphql-executor": "0.0.22",
|
|
15
15
|
"tslib": "~2.3.0",
|
|
16
16
|
"value-or-promise": "1.0.11"
|
|
17
17
|
},
|