@graphql-tools/executor
Advanced tools
Comparing version 0.0.1-alpha-20221025154355-1d847f5a to 0.0.1-alpha-20221025154926-95ab381b
@@ -168,3 +168,4 @@ "use strict"; | ||
const { operation, schema, fragments, variableValues, rootValue } = exeContext; | ||
const rootType = schema.getRootType(operation.operation); | ||
const rootTypeMap = (0, utils_1.getRootTypeMap)(schema); | ||
const rootType = rootTypeMap.get(operation.operation); | ||
if (rootType == null) { | ||
@@ -171,0 +172,0 @@ throw (0, utils_1.createGraphQLError)(`Schema is not configured to execute ${operation.operation} operation.`, { |
import { addPath, pathToArray } from 'graphql/jsutils/Path.js'; | ||
import { locatedError, OperationTypeNode, Kind, isAbstractType, isLeafType, isListType, isNonNullType, isObjectType, assertValidSchema, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, } from 'graphql'; | ||
import { getArgumentValues, getVariableValues } from './values.js'; | ||
import { collectFields, collectSubFields, createGraphQLError, inspect, isAsyncIterable, mapAsyncIterator, } from '@graphql-tools/utils'; | ||
import { collectFields, collectSubFields, createGraphQLError, getRootTypeMap, inspect, isAsyncIterable, mapAsyncIterator, } from '@graphql-tools/utils'; | ||
/** | ||
@@ -161,3 +161,4 @@ * Implements the "Executing requests" section of the GraphQL specification. | ||
const { operation, schema, fragments, variableValues, rootValue } = exeContext; | ||
const rootType = schema.getRootType(operation.operation); | ||
const rootTypeMap = getRootTypeMap(schema); | ||
const rootType = rootTypeMap.get(operation.operation); | ||
if (rootType == null) { | ||
@@ -164,0 +165,0 @@ throw createGraphQLError(`Schema is not configured to execute ${operation.operation} operation.`, { |
{ | ||
"name": "@graphql-tools/executor", | ||
"version": "0.0.1-alpha-20221025154355-1d847f5a", | ||
"version": "0.0.1-alpha-20221025154926-95ab381b", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
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
135311
2555