@graphql-tools/delegate
Advanced tools
Comparing version 6.0.10-alpha-968d7b4.0 to 6.0.10-alpha-9bf332e.0
@@ -831,2 +831,5 @@ 'use strict'; | ||
originalSelections.forEach(selection => { | ||
if (selection.name.value === '__typename') { | ||
return; | ||
} | ||
// 2a. use uniqueFields map to assign fields to subschema if one of possible subschemas | ||
@@ -1017,6 +1020,7 @@ const uniqueSubschema = uniqueFields[selection.name.value]; | ||
transformRequest(originalRequest) { | ||
const { document, newVariables } = addVariablesToRootField(this.targetSchema, originalRequest, this.args); | ||
const { document, variables } = addVariablesToRootField(this.targetSchema, originalRequest, this.args); | ||
return { | ||
...originalRequest, | ||
document, | ||
variables: newVariables, | ||
variables, | ||
}; | ||
@@ -1081,3 +1085,3 @@ } | ||
}, | ||
newVariables: variableValues, | ||
variables: variableValues, | ||
}; | ||
@@ -1084,0 +1088,0 @@ } |
@@ -827,2 +827,5 @@ import { Kind, typeFromAST, visit, visitWithTypeInfo, getNamedType, isAbstractType, TypeInfo, isObjectType, isInterfaceType, TypeNameMetaFieldDef, getNullableType, isLeafType, isCompositeType, isListType, isSchema, getOperationAST, execute, subscribe, validate, defaultFieldResolver, parse } from 'graphql'; | ||
originalSelections.forEach(selection => { | ||
if (selection.name.value === '__typename') { | ||
return; | ||
} | ||
// 2a. use uniqueFields map to assign fields to subschema if one of possible subschemas | ||
@@ -1013,6 +1016,7 @@ const uniqueSubschema = uniqueFields[selection.name.value]; | ||
transformRequest(originalRequest) { | ||
const { document, newVariables } = addVariablesToRootField(this.targetSchema, originalRequest, this.args); | ||
const { document, variables } = addVariablesToRootField(this.targetSchema, originalRequest, this.args); | ||
return { | ||
...originalRequest, | ||
document, | ||
variables: newVariables, | ||
variables, | ||
}; | ||
@@ -1077,3 +1081,3 @@ } | ||
}, | ||
newVariables: variableValues, | ||
variables: variableValues, | ||
}; | ||
@@ -1080,0 +1084,0 @@ } |
{ | ||
"name": "@graphql-tools/delegate", | ||
"version": "6.0.10-alpha-968d7b4.0", | ||
"version": "6.0.10-alpha-9bf332e.0", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -10,4 +10,4 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-tools/schema": "6.0.10-alpha-968d7b4.0", | ||
"@graphql-tools/utils": "6.0.10-alpha-968d7b4.0", | ||
"@graphql-tools/schema": "6.0.10-alpha-9bf332e.0", | ||
"@graphql-tools/utils": "6.0.10-alpha-9bf332e.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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
384094
3106
+ Added@graphql-tools/schema@6.0.10-alpha-9bf332e.0(transitive)
+ Added@graphql-tools/utils@6.0.10-alpha-9bf332e.0(transitive)
- Removed@graphql-tools/schema@6.0.10-alpha-968d7b4.0(transitive)
- Removed@graphql-tools/utils@6.0.10-alpha-968d7b4.0(transitive)