@graphql-tools/delegate
Advanced tools
Comparing version 6.0.4 to 6.0.5-alpha-9d37c5d.0
@@ -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 @@ |
@@ -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 @@ |
{ | ||
"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 not supported yet
Sorry, the diff of this file is not supported yet
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
2926
2
+ Added@graphql-tools/schema@6.0.5-alpha-9d37c5d.0(transitive)
+ Added@graphql-tools/utils@6.0.5-alpha-9d37c5d.0(transitive)
- Removed@graphql-tools/schema@6.0.4(transitive)
- Removed@graphql-tools/utils@6.0.4(transitive)