Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-tools/executor

Package Overview
Dependencies
Maintainers
3
Versions
343
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-20221025161341-67605d5d to 0.0.1-alpha-20221025161810-24ba2b78

7

cjs/execution/execute.js

@@ -177,7 +177,7 @@ "use strict";

switch (operation.operation) {
case graphql_1.OperationTypeNode.QUERY:
case 'query':
return executeFields(exeContext, rootType, rootValue, path, rootFields);
case graphql_1.OperationTypeNode.MUTATION:
case 'mutation':
return executeFieldsSerially(exeContext, rootType, rootValue, path, rootFields);
case graphql_1.OperationTypeNode.SUBSCRIPTION:
case 'subscription':
// TODO: deprecate `subscribe` and move all logic here

@@ -187,2 +187,3 @@ // Temporary solution until we finish merging execute and subscribe together

}
throw new Error(`Can only execute queries, mutations and subscriptions, got "${operation.operation}".`);
}

@@ -189,0 +190,0 @@ /**

@@ -1,2 +0,2 @@

import { locatedError, OperationTypeNode, Kind, isAbstractType, isLeafType, isListType, isNonNullType, isObjectType, assertValidSchema, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, } from 'graphql';
import { locatedError, Kind, isAbstractType, isLeafType, isListType, isNonNullType, isObjectType, assertValidSchema, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, } from 'graphql';
import { getVariableValues } from './values.js';

@@ -170,7 +170,7 @@ import { addPath, collectFields, collectSubFields, createGraphQLError, getArgumentValues, getRootTypeMap, inspect, isAsyncIterable, isIterableObject, isObjectLike, isPromise, mapAsyncIterator, pathToArray, promiseReduce, } from '@graphql-tools/utils';

switch (operation.operation) {
case OperationTypeNode.QUERY:
case 'query':
return executeFields(exeContext, rootType, rootValue, path, rootFields);
case OperationTypeNode.MUTATION:
case 'mutation':
return executeFieldsSerially(exeContext, rootType, rootValue, path, rootFields);
case OperationTypeNode.SUBSCRIPTION:
case 'subscription':
// TODO: deprecate `subscribe` and move all logic here

@@ -180,2 +180,3 @@ // Temporary solution until we finish merging execute and subscribe together

}
throw new Error(`Can only execute queries, mutations and subscriptions, got "${operation.operation}".`);
}

@@ -182,0 +183,0 @@ /**

{
"name": "@graphql-tools/executor",
"version": "0.0.1-alpha-20221025161341-67605d5d",
"version": "0.0.1-alpha-20221025161810-24ba2b78",
"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