@graphql-tools/executor
Advanced tools
Comparing version 0.0.1-alpha-20221027111103-811af8ff to 0.0.1-alpha-20221027112225-8b9addb3
@@ -167,8 +167,3 @@ "use strict"; | ||
const { operation, schema, fragments, variableValues, rootValue } = exeContext; | ||
const rootType = (0, utils_1.getDefinedRootType)(schema, operation.operation); | ||
if (rootType == null) { | ||
throw (0, utils_1.createGraphQLError)(`Schema is not configured to execute ${operation.operation} operation.`, { | ||
nodes: operation, | ||
}); | ||
} | ||
const rootType = (0, utils_1.getDefinedRootType)(schema, operation.operation, [operation]); | ||
const rootFields = (0, utils_1.collectFields)(schema, fragments, variableValues, rootType, operation.selectionSet); | ||
@@ -175,0 +170,0 @@ const path = undefined; |
@@ -160,8 +160,3 @@ import { locatedError, Kind, isAbstractType, isLeafType, isListType, isNonNullType, isObjectType, assertValidSchema, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, } from 'graphql'; | ||
const { operation, schema, fragments, variableValues, rootValue } = exeContext; | ||
const rootType = getDefinedRootType(schema, operation.operation); | ||
if (rootType == null) { | ||
throw createGraphQLError(`Schema is not configured to execute ${operation.operation} operation.`, { | ||
nodes: operation, | ||
}); | ||
} | ||
const rootType = getDefinedRootType(schema, operation.operation, [operation]); | ||
const rootFields = collectFields(schema, fragments, variableValues, rootType, operation.selectionSet); | ||
@@ -168,0 +163,0 @@ const path = undefined; |
{ | ||
"name": "@graphql-tools/executor", | ||
"version": "0.0.1-alpha-20221027111103-811af8ff", | ||
"version": "0.0.1-alpha-20221027112225-8b9addb3", | ||
"sideEffects": false, | ||
@@ -9,3 +9,3 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@graphql-tools/utils": "8.13.0-alpha-20221027111103-811af8ff", | ||
"@graphql-tools/utils": "8.13.0-alpha-20221027112225-8b9addb3", | ||
"@graphql-typed-document-node/core": "3.1.1" | ||
@@ -12,0 +12,0 @@ }, |
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
123726
2303
+ Added@graphql-tools/utils@8.13.0-alpha-20221027112225-8b9addb3(transitive)
- Removed@graphql-tools/utils@8.13.0-alpha-20221027111103-811af8ff(transitive)
Updated@graphql-tools/utils@8.13.0-alpha-20221027112225-8b9addb3