@graphql-tools/batch-execute
10.3.2 · 9 Nov 2026MIT15.5M / weekRepositorynpmAtom feed
87 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 8.x
8.5.3 – 8.5.75 releases that only update dependencies@graphql-tools/utils 8.13.0Show each
- 8.5.727 Oct 2022@graphql-tools/utils 8.13.0
- 8.5.69 Sep 2022@graphql-tools/utils 8.12.0
- 8.5.55 Sep 2022@graphql-tools/utils 8.11.0
- 8.5.426 Aug 2022@graphql-tools/utils 8.10.1
- 8.5.310 Aug 2022@graphql-tools/utils 8.10.0
8.5.1
27 Jul 2022Only updates a dependency:@graphql-tools/utils 8.9.0
8.5.0
27 Jun 2022Support TypeScript module resolution.
Minor Changes
Support TypeScript module resolution.
8.4.11
23 Jun 2022Only updates a dependency:@graphql-tools/utils 8.7.0
8.4.10
7 Jun 2022Use caret range for the tslib dependency
Patch Changes
Use caret range for the tslib dependency
8.4.4 – 8.4.96 releases that only update dependencies@graphql-tools/utils 8.6.12Show each
- 8.4.920 May 2022@graphql-tools/utils 8.6.12
- 8.4.820 May 2022@graphql-tools/utils 8.6.11
- 8.4.79 May 2022@graphql-tools/utils 8.6.10
- 8.4.619 Apr 2022@graphql-tools/utils 8.6.9
- 8.4.515 Apr 2022@graphql-tools/utils 8.6.8
- 8.4.413 Apr 2022@graphql-tools/utils 8.6.7
8.4.3
13 Apr 2022Bump data-loader and cross-undici-fetch
8.4.1 – 8.4.22 releases that only update dependencies@graphql-tools/utils 8.6.6Show each
- 8.4.27 Apr 2022@graphql-tools/utils 8.6.6
- 8.4.122 Mar 2022@graphql-tools/utils 8.6.5
8.4.0
22 Mar 2022Forward gateway operation's name to subschema executors
Minor Changes
Forward gateway operation's name to subschema executors
8.3.3
16 Mar 2022Fix - align versions
8.3.2
24 Feb 2022visitResult: Ignore if field not present in visited object
Patch Changes
visitResult: Ignore if field not present in visited object
8.3.1
27 Oct 2021enhance: Use ^ for tslib dependency
Patch Changes
enhance: Use ^ for tslib dependency
8.3.0
21 Oct 2021enhance: Make operationType optional
Minor Changes
enhance: Make operationType optional
8.2.0
19 Oct 2021Getting ready for GraphQL v16
Minor Changes
Getting ready for GraphQL v16
8.1.1
30 Sep 2021batch-execute enhancements:
Patch Changes
batch-execute enhancements:
fixes bugs with batched fragment definitions
unpathed errors are now returned for all batch results
the "graphqlTools" prefix is simplified down to just "_"
new tests and documentation
8.1.0
31 Aug 2021GraphQL v16 support
enhance(utils): move memoize functions to utils
Minor Changes
GraphQL v16 support
enhance(utils): move memoize functions to utils
8.0.5
19 Aug 2021Use version ranges instead of a fixed version for the graphql-tools package versions
Patch Changes
Use version ranges instead of a fixed version for the graphql-tools package versions
8.0.1 – 8.0.44 releases that only update dependencies@graphql-tools/utils 8.1.1Show each
- 8.0.416 Aug 2021@graphql-tools/utils 8.1.1
- 8.0.312 Aug 2021@graphql-tools/utils 8.1.0
- 8.0.24 Aug 2021@graphql-tools/utils 8.0.2
- 8.0.128 Jul 2021@graphql-tools/utils 8.0.1
8.0.0
28 Jul 2021- Breaking
ExecutionParams type replaced by Request type
rootValue property is now a part of the Request type.
When delegating with delegateToSchema, rootValue can be set multiple ways:
When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above.
- Breaking
BREAKING CHANGES;
It doesn't rely on info.operation.operationType to allow the user to call an operation from different root type. And it doesn't call getOperationAST again and again to get operation type from the document/operation because we have it in Request and ExecutionParams #3166
Improvements;
Batch executor is memoized by
executorreference butcreateDefaultExecutordidn't memoize the default executor so this memoization wasn't working correctly onbatch-executeside. github.com/ardatan/graphql-tools/blob/remove-in… - Breaking
BREAKING CHANGE
Major Changes
- Breaking
ExecutionParams type replaced by Request type
rootValue property is now a part of the Request type.
When delegating with delegateToSchema, rootValue can be set multiple ways:
when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies.
when using the default executor (execute/subscribe from graphql-js): -- rootValue can be passed to delegateToSchema via a named option -- rootValue can be included within a subschemaConfig -- otherwise, rootValue is inferred from the originating schema
When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above.
- Breaking
BREAKING CHANGES;
Rename
RequesttoExecutionRequestAdd required
operationType: OperationTypeNodefield inExecutionRequestAdd
contextincreateRequestandcreateRequestInfoinstead ofdelegateToSchema
It doesn't rely on info.operation.operationType to allow the user to call an operation from different root type. And it doesn't call getOperationAST again and again to get operation type from the document/operation because we have it in Request and ExecutionParams #3166
Improvements;
Memoize
defaultExecutorfor a singleGraphQLSchemaso allowgetBatchingExecutorto memoizebatchingExecutorcorrectly.And there is no different
defaultExecutoris created forsubscriptionand other operation types. Only one executor is used.
Batch executor is memoized by
executorreference butcreateDefaultExecutordidn't memoize the default executor so this memoization wasn't working correctly onbatch-executeside. github.com/ardatan/graphql-tools/blob/remove-in… - Breaking
BREAKING CHANGE
Remove Subscriber and use only Executor
Now
Executorcan receiveAsyncIterableand subscriptions will also be handled byExecutor. This is a future-proof change for defer, stream and live queries
- 7.x
7.1.2
1 May 2021Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.
7.1.1
28 Apr 2021Use value-or-promise to streamline working with sync values or async promises
7.1.0
24 Mar 2021types: Add TContext to stitchSchemas and executor
Minor Changes
types: Add TContext to stitchSchemas and executor
7.0.0
23 Oct 2020- Breaking
Breaking Changes:
- Breaking
Resolver validation options should now be set to
error,warnorignorerather thantrueorfalse. In previous versions, some of the validators caused errors to be thrown, while some issued warnings. This changes brings consistency to validator behavior. - Breaking
The
allowResolversNotInSchemahas been renamed torequireResolversToMatchSchema, to harmonize the naming convention of all the validators. The default setting ofrequireResolversToMatchSchemaiserror, matching the previous behavior.
Major Changes
- Breaking
Breaking Changes:
Schema Generation and Decoration API (
@graphql-tools/schema)- Breaking
Resolver validation options should now be set to
error,warnorignorerather thantrueorfalse. In previous versions, some of the validators caused errors to be thrown, while some issued warnings. This changes brings consistency to validator behavior. - Breaking
The
allowResolversNotInSchemahas been renamed torequireResolversToMatchSchema, to harmonize the naming convention of all the validators. The default setting ofrequireResolversToMatchSchemaiserror, matching the previous behavior.
Schema Delegation (
delegateToSchema&@graphql-tools/delegate)- Breaking
The
delegateToSchemareturn value has matured and been formalized as anExternalObject, in which all errors are integrated into the GraphQL response, preserving their initial path. Those advanced users accessing the result directly will note the change in error handling. This also allows for the deprecation of unnecessary helper functions includingslicedError,getErrors,getErrorsByPathSegmentfunctions. Only external errors with missing or invalid paths must still be preserved by annotating the remote object with special properties. The newgetUnpathedErrorsfunction is therefore necessary for retrieving only these errors. Note also the newannotateExternalObjectandmergeExternalObjectsfunctions, as well as the renaming ofhandleResulttoresolveExternalValue. - Breaking
Transform types and the
applySchemaTransformsare now relocated to thedelegatepackage;applyRequestTransforms/applyResultTransformsfunctions have been deprecated, however, as this functionality has been replaced since v6 by theTransformerabstraction. - Breaking
The
transformRequest/transformResultmethods are now provided additionaldelegationContextandtransformationContextarguments -- these were introduced in v6, but previously optional. - Breaking
The
transformSchemamethod may wish to create additional delegating resolvers and so it is now provided thesubschemaConfigand final (non-executable)transformedSchemaparameters. As in v6, thetransformSchemais kicked off once to produce the non-executable version, and then, if a wrapping schema is being generated, proxying resolvers are created with access to the (non-executable) initial result. In v7, the individualtransformSchemamethods also get access to the result of the first run, if necessary, they can create additional wrapping schema proxying resolvers. - Breaking
applySchemaTransformsparameters have been updated to match and support thetransformSchemaparameters above.
Remote Schemas & Wrapping (
wrapSchema,makeRemoteExecutableSchema, and@graphql-tools/wrap)- Breaking
wrapSchemaandgenerateProxyingResolversnow only take a single options argument with named properties of typeSubschemaConfig. The previously possible shorthand version with first argument consisting of aGraphQLSchemaand second argument representing the transforms should be reworked as aSubschemaConfigobject. - Breaking
Similarly, the
ICreateProxyingResolverOptionsinterface that provides the options for thecreateProxyingResolverproperty ofSubschemaConfigoptions has been adjusted. Theschemaproperty previously could be set to aGraphQLSchemaor aSubschemaConfigobject. This property has been removed in favor of asubschemaConfigproperty that will always be aSubschemaConfigobject. Thetransformsproperty has been removed; transforms should be included within theSubschemaConfigobject.` - Breaking
The format of the wrapping schema has solidified. All non-root fields are expected to use identical resolvers, either
defaultMergedResolveror a custom equivalent, with root fields doing the hard work of proxying. Support for custom merged resolvers throughtcreateMergedResolverhas been deprecated, as custom merging resolvers conflicts when using stitching's type merging, where resolvers are expected to be identical across subschemas. - Breaking
The
WrapFieldstransform'swrappingResolveroption has been removed, as this complicates multiple wrapping layers, as well as planned functionality to wrap subscription root fields in potentially multiple layers, as the wrapping resolvers may be different in different layers. Modifying resolvers can still be performed by use of an additional transform such asTransformRootFieldsorTransformObjectFields. - Breaking
The
ExtendSchematransform has been removed, as it is conceptually simpler just to usestitchSchemaswith one subschema. - Breaking
The
ReplaceFieldsWithFragment,AddFragmentsByField,AddSelectionSetsByField, andAddMergedTypeSelectionSetstransforms has been removed, as they are superseded by theAddSelectionSetsandVisitSelectionSetstransforms. TheAddSelectionSetspurposely takes parsed SDL rather than strings, to nudge end users to parse these strings at build time (when possible), rather than at runtime. Parsing of selection set strings can be performed using theparseSelectionSetfunction from@graphql-tools/utils.
Schema Stitching (
stitchSchemas&@graphql-tools/stitch)- Breaking
stitchSchemas'smergeTypesoption is now true by default! This causes theonTypeConflictoption to be ignored by default. To useonTypeConflictto select a specific type instead of simply merging, simply setmergeTypesto false. - Breaking
schemasargument has been deprecated, usesubschemas,typeDefs, ortypes, depending on what you are stitching. - Breaking
When using batch delegation in type merging, the
argsFromKeysfunction is now set only via theargsFromKeysproperty. Previously, ifargsFromKeyswas absent, it could be read fromargs. - Breaking
Support for fragment hints has been removed in favor of selection set hints.
- Breaking
stitchSchemasnow processes allGraphQLSchemaandSubschemaConfigsubschema input into newSubschemaobjects, handling schema config directives such aso@computedas well as generating the final transformed schema, stored as thetransformedSchemaproperty, if transforms are used. Signatures of theonTypeConflict,fieldConfigMerger, andinputFieldConfigMergerhave been updated to include metadata related to the original and transformed subschemas. Note the property name change foronTypeConflictfromschematosubschema.
Mocking (
addMocksToSchemaand@graphql-tools/mock)- Breaking
Mocks returning objects with fields set as functions are now operating according to upstream graphql-js convention, i.e. these functions take three arguments,
args,context, andinfowithparentavailable asthisrather than as the first argument.
Other Utilities (
@graphql-tools/utils)- Breaking
filterSchema'sfieldFilterwill now filter all fields across Object, Interface, and Input types. For the previous Object-only behavior, switch to theobjectFieldFilteroption. - Breaking
Unused
fieldNodesutility functions have been removed. - Breaking
Unused
typeContainsSelectionSetfunction has been removed, andtypesContainSelectionSethas been moved to thestitchpackage. - Breaking
Unnecessary
Operationtype has been removed in favor ofOperationTypeNodefrom upstream graphql-js. - Breaking
As above,
applySchemaTransforms/applyRequestTransforms/applyResultTransformshave been removed from theutilspackage, as they are implemented elsewhere or no longer necessary.
Related Issues
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.