Socket
Socket
Sign inDemoInstall

@graphql-tools/executor

Package Overview
Dependencies
Maintainers
3
Versions
337
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/executor - npm Package Compare versions

Comparing version 0.0.1-alpha-20221025154355-1d847f5a to 0.0.1-alpha-20221025154926-95ab381b

3

cjs/execution/execute.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc