@graphql-tools/delegate
Advanced tools
+14
-2
@@ -1222,6 +1222,18 @@ 'use strict'; | ||
| function createDefaultExecutor(schema, rootValue) { | ||
| return ({ document, context, variables, info }) => graphql.execute(schema, document, rootValue !== null && rootValue !== void 0 ? rootValue : info === null || info === void 0 ? void 0 : info.rootValue, context, variables); | ||
| return ({ document, context, variables, info }) => graphql.execute({ | ||
| schema, | ||
| document, | ||
| contextValue: context, | ||
| variableValues: variables, | ||
| rootValue: rootValue !== null && rootValue !== void 0 ? rootValue : info === null || info === void 0 ? void 0 : info.rootValue, | ||
| }); | ||
| } | ||
| function createDefaultSubscriber(schema, rootValue) { | ||
| return ({ document, context, variables, info }) => graphql.subscribe(schema, document, rootValue !== null && rootValue !== void 0 ? rootValue : info === null || info === void 0 ? void 0 : info.rootValue, context, variables); | ||
| return ({ document, context, variables, info }) => graphql.subscribe({ | ||
| schema, | ||
| document, | ||
| contextValue: context, | ||
| variableValues: variables, | ||
| rootValue: rootValue !== null && rootValue !== void 0 ? rootValue : info === null || info === void 0 ? void 0 : info.rootValue, | ||
| }); | ||
| } | ||
@@ -1228,0 +1240,0 @@ |
+14
-2
@@ -1218,6 +1218,18 @@ import { visit, visitWithTypeInfo, Kind, getNamedType, isAbstractType, TypeInfo, isObjectType, isInterfaceType, TypeNameMetaFieldDef, getNullableType, isLeafType, isCompositeType, isListType, typeFromAST, isSchema, getOperationAST, validate, execute, subscribe, defaultFieldResolver, parse } from 'graphql'; | ||
| function createDefaultExecutor(schema, rootValue) { | ||
| return ({ document, context, variables, info }) => execute(schema, document, rootValue !== null && rootValue !== void 0 ? rootValue : info === null || info === void 0 ? void 0 : info.rootValue, context, variables); | ||
| return ({ document, context, variables, info }) => execute({ | ||
| schema, | ||
| document, | ||
| contextValue: context, | ||
| variableValues: variables, | ||
| rootValue: rootValue !== null && rootValue !== void 0 ? rootValue : info === null || info === void 0 ? void 0 : info.rootValue, | ||
| }); | ||
| } | ||
| function createDefaultSubscriber(schema, rootValue) { | ||
| return ({ document, context, variables, info }) => subscribe(schema, document, rootValue !== null && rootValue !== void 0 ? rootValue : info === null || info === void 0 ? void 0 : info.rootValue, context, variables); | ||
| return ({ document, context, variables, info }) => subscribe({ | ||
| schema, | ||
| document, | ||
| contextValue: context, | ||
| variableValues: variables, | ||
| rootValue: rootValue !== null && rootValue !== void 0 ? rootValue : info === null || info === void 0 ? void 0 : info.rootValue, | ||
| }); | ||
| } | ||
@@ -1224,0 +1236,0 @@ |
+3
-3
| { | ||
| "name": "@graphql-tools/delegate", | ||
| "version": "6.0.4", | ||
| "version": "6.0.5-alpha-9d37c5d.0", | ||
| "description": "A set of utils for faster development of GraphQL tools", | ||
@@ -10,4 +10,4 @@ "sideEffects": false, | ||
| "dependencies": { | ||
| "@graphql-tools/schema": "6.0.4", | ||
| "@graphql-tools/utils": "6.0.4", | ||
| "@graphql-tools/schema": "6.0.5-alpha-9d37c5d.0", | ||
| "@graphql-tools/utils": "6.0.5-alpha-9d37c5d.0", | ||
| "tslib": "~2.0.0" | ||
@@ -14,0 +14,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
367261
0.3%2926
0.83%2
100%+ Added
+ Added
- Removed
- Removed