@graphql-tools/executor
Advanced tools
Comparing version 2.0.0-alpha-20240806151613-ec8ecec67a150b8b6e117cb473fb248e6cb92f47 to 2.0.0-alpha-20240808024617-ce2a11c8e367fb077059f28163c7d22edbcefde2
@@ -5,5 +5,5 @@ import { assertValidSchema, getDirectiveValues, GraphQLError, isAbstractType, isLeafType, isListType, isNonNullType, isObjectType, Kind, locatedError, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, versionInfo, } from 'graphql'; | ||
import { BoxedPromiseOrValue } from './BoxedPromiseOrValue.js'; | ||
import { buildBranchingExecutionPlan, buildExecutionPlan, } from './buildExecutionPlan.js'; | ||
import { buildBranchingExecutionPlan, buildExecutionPlan } from './buildExecutionPlan.js'; | ||
import { coerceError } from './coerceError.js'; | ||
import { collectSubfields as _collectSubfields, collectFields, } from './collectFields.js'; | ||
import { collectSubfields as _collectSubfields, collectFields } from './collectFields.js'; | ||
import { flattenAsyncIterable } from './flattenAsyncIterable.js'; | ||
@@ -13,3 +13,3 @@ import { buildIncrementalResponse } from './IncrementalPublisher.js'; | ||
import { promiseForObject } from './promiseForObject.js'; | ||
import { DeferredFragmentRecord, } from './types.js'; | ||
import { DeferredFragmentRecord } from './types.js'; | ||
import { getVariableValues } from './values.js'; | ||
@@ -222,2 +222,4 @@ /** | ||
errors: undefined, | ||
cancellableStreams: undefined, | ||
incrementalDataRecords: undefined, | ||
}; | ||
@@ -1030,3 +1032,3 @@ } | ||
// "ExecuteQuery" algorithm, for which `execute` is also used. | ||
return flattenAsyncIterable(mapAsyncIterator(resultOrStream[Symbol.asyncIterator](), async (payload) => ensureAsyncIterable(await executeOperation(buildPerEventExecutionContext(exeContext, payload))), (error) => { | ||
return flattenAsyncIterable(mapAsyncIterator(resultOrStream, async (payload) => ensureAsyncIterable(await executeOperation(buildPerEventExecutionContext(exeContext, payload))), (error) => { | ||
if (error instanceof AggregateError) { | ||
@@ -1033,0 +1035,0 @@ throw new AggregateError(error.errors.map(e => wrapError(e, exeContext.operation)), error.message); |
{ | ||
"name": "@graphql-tools/executor", | ||
"version": "2.0.0-alpha-20240806151613-ec8ecec67a150b8b6e117cb473fb248e6cb92f47", | ||
"version": "2.0.0-alpha-20240808024617-ce2a11c8e367fb077059f28163c7d22edbcefde2", | ||
"sideEffects": false, | ||
@@ -9,3 +9,3 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@graphql-tools/utils": "10.4.0-alpha-20240806151613-ec8ecec67a150b8b6e117cb473fb248e6cb92f47", | ||
"@graphql-tools/utils": "10.4.0-alpha-20240808024617-ce2a11c8e367fb077059f28163c7d22edbcefde2", | ||
"@graphql-typed-document-node/core": "3.2.0", | ||
@@ -12,0 +12,0 @@ "@repeaterjs/repeater": "^3.0.4", |
@@ -5,3 +5,3 @@ import { DocumentNode, FieldNode, FragmentDefinitionNode, GraphQLError, GraphQLField, GraphQLFieldResolver, GraphQLObjectType, GraphQLResolveInfo, GraphQLSchema, GraphQLTypeResolver, OperationDefinitionNode } from 'graphql'; | ||
import { AccumulatorMap } from './AccumulatorMap.js'; | ||
import { CancellableStreamRecord, IncrementalDataRecord, IncrementalExecutionResults, InitialIncrementalExecutionResult, SingularExecutionResult, SubsequentIncrementalExecutionResult } from './types.js'; | ||
import type { CancellableStreamRecord, IncrementalDataRecord, IncrementalExecutionResults, InitialIncrementalExecutionResult, SingularExecutionResult, SubsequentIncrementalExecutionResult } from './types.js'; | ||
/** | ||
@@ -8,0 +8,0 @@ * Terminology |
Sorry, the diff of this file is too big to display
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
275675
5646
+ Added@graphql-tools/utils@10.4.0-alpha-20240808024617-ce2a11c8e367fb077059f28163c7d22edbcefde2(transitive)
- Removed@graphql-tools/utils@10.4.0-alpha-20240806151613-ec8ecec67a150b8b6e117cb473fb248e6cb92f47(transitive)
Updated@graphql-tools/utils@10.4.0-alpha-20240808024617-ce2a11c8e367fb077059f28163c7d22edbcefde2