- Updated dependencies
[
4912f19
]:- @graphql-tools/utils@10.7.1
- Updated dependencies
[
2c70d27
]:- @graphql-tools/utils@10.7.0
- Updated dependencies
[
6a8123b
]:- @graphql-tools/utils@10.6.4
- Updated dependencies
[
020b9e4
]:- @graphql-tools/utils@10.6.3
- #6662
696a0d5
Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/utils@^10.6.1
↗︎ (from^10.6.0
, independencies
)
- Updated dependency
- Updated dependencies
[
1b24656
]:- @graphql-tools/utils@10.6.2
- Updated dependencies
[
1e02935
]:- @graphql-tools/utils@10.6.1
- Updated dependencies
[
414e404
]:- @graphql-tools/utils@10.6.0
- Updated dependencies
[
dc5043b
]:- @graphql-tools/utils@10.5.6
- Updated dependencies
[
cf2ce5e
]:- @graphql-tools/utils@10.5.5
-
Updated dependencies [
0286437
]:- @graphql-tools/utils@10.5.4
-
b8bf584
Thanks @ardatan! - Introduce `getDirectiveExtensions` and refactor directive handling in the extensions -
Updated dependencies [
b8bf584
]:- @graphql-tools/utils@10.4.0
- #6111
a06dbd2
Thanks @lesleydreyer! - Fix directive merging when directive name is inherited from object prototype (i.e. toString)
- #5913
83c0af0
Thanks @enisdenjo! - dependencies updates:- Updated dependency
@graphql-tools/utils@^10.0.13
↗︎ (from^10.0.10
, independencies
)
- Updated dependency
-
a570a601
Thanks @ardatan! - Add respectArrays flag to extensions merging -
Updated dependencies [
a570a601
]:- @graphql-tools/utils@10.0.10
- #5075
04e3ecb9
Thanks @simplecommerce! - Added onFieldTypeConflict option to handle manual conflicts for mergeTypeDef and reverseArguments option to select left side arguments if specified.
- Updated dependencies
[
b5c8f640
]:- @graphql-tools/utils@9.2.1
- Updated dependencies
[
e3ec35ed
]:- @graphql-tools/utils@9.1.4
- Updated dependencies
[
904fe770
]:- @graphql-tools/utils@9.1.3
- Updated dependencies
[
13c24883
]:- @graphql-tools/utils@9.1.2
- Updated dependencies
[
7411a5e7
]:- @graphql-tools/utils@9.1.1
- Updated dependencies
[
c0639dd0
]:- @graphql-tools/utils@9.1.0
- Updated dependencies
[
d83b1960
]:- @graphql-tools/utils@9.0.1
- Updated dependencies
[
f7daf777
]:- @graphql-tools/utils@8.13.1
- Updated dependencies
[
43c736bd
]:- @graphql-tools/utils@8.12.0
- Updated dependencies
[
4fe3d9c0
]:- @graphql-tools/utils@8.10.1
-
#4643
2609d71f
Thanks @ardatan! - Revert the breaking change introduced in@graphql-tools/merge
-
Updated dependencies [
2609d71f
]:- @graphql-tools/utils@8.10.0
-
#4624
e3167edc
Thanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolution
node16
ornodenext
-
Updated dependencies [
e3167edc
]:- @graphql-tools/utils@8.9.1
- Updated dependencies [2a3b45e3]
- @graphql-tools/utils@8.9.0
- d76a299c: Support TypeScript module resolution.
- Updated dependencies [a0abbbcd]
- Updated dependencies [d76a299c]
- @graphql-tools/utils@8.8.0
- Updated dependencies [4914970b]
- @graphql-tools/utils@8.7.0
- 041c5ba1: Use caret range for the tslib dependency
- Updated dependencies [041c5ba1]
- @graphql-tools/utils@8.6.13
- Updated dependencies [da7ad43b]
- @graphql-tools/utils@8.6.12
- Updated dependencies [c0762ee3]
- @graphql-tools/utils@8.6.11
- Updated dependencies [0fc510cb]
- @graphql-tools/utils@8.6.10
- Updated dependencies [31a33e2b]
- @graphql-tools/utils@8.6.9
- Updated dependencies [cb238877]
- @graphql-tools/utils@8.6.8
- Updated dependencies [0bbb1769]
- @graphql-tools/utils@8.6.7
- Updated dependencies [904c0847]
- @graphql-tools/utils@8.6.6
- Updated dependencies [be2c02d7]
- @graphql-tools/utils@8.6.5
- Updated dependencies [d36d530b]
- @graphql-tools/utils@8.6.4
- 0c0c6857: fix - align versions
- 18341363: feat(visitResult): ignore if field not present in visited object
- Updated dependencies [18341363]
- @graphql-tools/utils@8.6.2
- 12691405: Update
mergeTypeDefs
to mergeimplements
definitions defined within interface extensions.
- 4bfb3428: enhance: use ^ for tslib dependency
- Updated dependencies [4bfb3428]
- @graphql-tools/utils@8.5.1
- 149afddb: fix: getting ready for GraphQL v16
- Updated dependencies [149afddb]
- @graphql-tools/utils@8.4.0
- 9a005161: fix(merge): convertExtensions should convert extensions to regular definitions not other way around
- d4918a78: fix(commentDescriptions): handle descriptions and comments correctly during merge
- Updated dependencies [d4918a78]
- @graphql-tools/utils@8.2.2
- c5b0719c: feat: GraphQL v16 support
- Updated dependencies [c5b0719c]
- Updated dependencies [c5b0719c]
- Updated dependencies [c5b0719c]
- Updated dependencies [c5b0719c]
- Updated dependencies [c5b0719c]
- @graphql-tools/utils@8.2.0
- c8c13ed1: enhance: remove TypeMap and small improvements
- Updated dependencies [c8c13ed1]
- @graphql-tools/utils@8.1.2
- e50852e6: use version ranges instead of a fixed version for the graphql-tools package versions
- Updated dependencies [2c807ddb]
- @graphql-tools/utils@8.1.1
-
67691b78: -
schemaExtensions
option has been added tomergeSchemas
,makeExecutableSchema
andstitchSchemas
configurationsBreaking Changes;
- Move
mergeSchemas
andMergeSchemasConfig
from@graphql-tools/merge
to@graphql-tools/schema
package to prevent circular dependency between them. mergeSchemasAsync
has been removed.- Move
NamedDefinitionNode
,resetComments
,collectComment
,pushComment
andprintComment
from@graphql-tools/merge
to@graphql-tools/utils
.
- Move
- a5fb77a4: fix(merge): ignore comments while merging directives #3031
- Updated dependencies [b9684631]
- Updated dependencies [9ede806a]
- Updated dependencies [67691b78]
- @graphql-tools/utils@8.1.0
- 4992b472: BREAKING: change type signature and generic parameters of
mergeResolvers
- @graphql-tools/schema@8.0.3
- Updated dependencies [04830049]
- @graphql-tools/utils@8.0.2
- @graphql-tools/schema@8.0.2
- Updated dependencies [b823dbaf]
- @graphql-tools/utils@8.0.1
- @graphql-tools/schema@8.0.1
- a31f9593: fix(merge): handle schema definitions correctly
- Updated dependencies [af9a78de]
- Updated dependencies [9c26b847]
- Updated dependencies [7d3e3006]
- Updated dependencies [7d3e3006]
- Updated dependencies [dae6dc7b]
- Updated dependencies [6877b913]
- Updated dependencies [7d3e3006]
- Updated dependencies [c42e811d]
- Updated dependencies [7d3e3006]
- Updated dependencies [8c8d4fc0]
- Updated dependencies [7d3e3006]
- Updated dependencies [7d3e3006]
- Updated dependencies [7d3e3006]
- Updated dependencies [74581cf3]
- Updated dependencies [c0ca3190]
- Updated dependencies [7d3e3006]
- Updated dependencies [982c8f53]
- Updated dependencies [7d3e3006]
- Updated dependencies [7d3e3006]
- Updated dependencies [7d3e3006]
- @graphql-tools/utils@8.0.0
- @graphql-tools/schema@8.0.0
- eae28793: fix(merge): handle undefined interfaces array on ObjectTypeDefinitionNode #2629
- 60a9c9a5: fix(merge): handle arrays correctly
- 68946667: fix(merge): fix handling schema definitions with convertExtensions flag
- 43da6b59: enhance(merge): reduce number of iterations
- Updated dependencies [58fd4b28]
- Updated dependencies [43da6b59]
- @graphql-tools/utils@7.7.0
-
0194118f: Introduces a suite of stitched schema validations that enforce the integrity of merged schemas. This includes validations for:
- Strict and safe null consistency (the later of which allows safe transitions in nullability).
- Named type consistency with the option to whitelist proxiable scalar mappings.
- Argument and input field name consistency.
- Enum value consistency when used as an input value.
Validations may be adjusted by setting
validationLevel
tooff|warn|error
globally or scoped for specific types and fields. In this initial v7 release, all validations are introduced at thewarn
threshold for backwards compatibility. Most of these validations will become automatic errors in v8. To enable validation errors now, setvalidationLevel: 'error'
. Full configuration options look like this:const gatewaySchema = stitchSchemas({ subschemas: [...], typeMergingOptions: { validationSettings: { validationLevel: 'error', strictNullComparison: false, // << gateway "String" may proxy subschema "String!" proxiableScalars: { ID: ['String'], // << gateway "ID" may proxy subschema "String" } }, validationScopes: { // scope to specific element paths 'User.id': { validationLevel: 'warn', strictNullComparison: true, }, } }, });
- 219ed392: enhance(load/module-loader/merge): use getDocumentNodeFromSchema instead of parse and printSchemaWithDirectives together
- Updated dependencies [219ed392]
- Updated dependencies [219ed392]
- Updated dependencies [219ed392]
- @graphql-tools/utils@7.5.0
- 8f331aaa: enhance(load/module-loader/merge): use getDocumentNodeFromSchema instead of parse and printSchemaWithDirectives together
- Updated dependencies [8f331aaa]
- Updated dependencies [8f331aaa]
- @graphql-tools/utils@7.4.0
- d9b82a2e: fix(merge/stitch) consistent enum value merge
- d9b82a2e: enhance(stitch) canonical merged type and field definitions. Use the @canonical directive to promote preferred type and field descriptions into the combined gateway schema.
- 878c36b6: enhance(stitch): use mergeScalar from merge
-
be1a1575: ## Breaking Changes:
-
Resolver validation options should now be set to
error
,warn
orignore
rather thantrue
orfalse
. In previous versions, some of the validators caused errors to be thrown, while some issued warnings. This changes brings consistency to validator behavior. -
The
allowResolversNotInSchema
has been renamed torequireResolversToMatchSchema
, to harmonize the naming convention of all the validators. The default setting ofrequireResolversToMatchSchema
iserror
, matching the previous behavior.
-
The
delegateToSchema
return 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
,getErrorsByPathSegment
functions. Only external errors with missing or invalid paths must still be preserved by annotating the remote object with special properties. The newgetUnpathedErrors
function is therefore necessary for retrieving only these errors. Note also the newannotateExternalObject
andmergeExternalObjects
functions, as well as the renaming ofhandleResult
toresolveExternalValue
. -
Transform types and the
applySchemaTransforms
are now relocated to thedelegate
package;applyRequestTransforms
/applyResultTransforms
functions have been deprecated, however, as this functionality has been replaced since v6 by theTransformer
abstraction. -
The
transformRequest
/transformResult
methods are now provided additionaldelegationContext
andtransformationContext
arguments -- these were introduced in v6, but previously optional. -
The
transformSchema
method may wish to create additional delegating resolvers and so it is now provided thesubschemaConfig
and final (non-executable)transformedSchema
parameters. As in v6, thetransformSchema
is 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 individualtransformSchema
methods also get access to the result of the first run, if necessary, they can create additional wrapping schema proxying resolvers. -
applySchemaTransforms
parameters have been updated to match and support thetransformSchema
parameters above.
-
wrapSchema
andgenerateProxyingResolvers
now only take a single options argument with named properties of typeSubschemaConfig
. The previously possible shorthand version with first argument consisting of aGraphQLSchema
and second argument representing the transforms should be reworked as aSubschemaConfig
object. -
Similarly, the
ICreateProxyingResolverOptions
interface that provides the options for thecreateProxyingResolver
property ofSubschemaConfig
options has been adjusted. Theschema
property previously could be set to aGraphQLSchema
or aSubschemaConfig
object. This property has been removed in favor of asubschemaConfig
property that will always be aSubschemaConfig
object. Thetransforms
property has been removed; transforms should be included within theSubschemaConfig
object.` -
The format of the wrapping schema has solidified. All non-root fields are expected to use identical resolvers, either
defaultMergedResolver
or a custom equivalent, with root fields doing the hard work of proxying. Support for custom merged resolvers throughtcreateMergedResolver
has been deprecated, as custom merging resolvers conflicts when using stitching's type merging, where resolvers are expected to be identical across subschemas. -
The
WrapFields
transform'swrappingResolver
option 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 asTransformRootFields
orTransformObjectFields
. -
The
ExtendSchema
transform has been removed, as it is conceptually simpler just to usestitchSchemas
with one subschema. -
The
ReplaceFieldsWithFragment
,AddFragmentsByField
,AddSelectionSetsByField
, andAddMergedTypeSelectionSets
transforms has been removed, as they are superseded by theAddSelectionSets
andVisitSelectionSets
transforms. TheAddSelectionSets
purposely 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 theparseSelectionSet
function from@graphql-tools/utils
.
-
stitchSchemas
'smergeTypes
option is now true by default! This causes theonTypeConflict
option to be ignored by default. To useonTypeConflict
to select a specific type instead of simply merging, simply setmergeTypes
to false. -
schemas
argument has been deprecated, usesubschemas
,typeDefs
, ortypes
, depending on what you are stitching. -
When using batch delegation in type merging, the
argsFromKeys
function is now set only via theargsFromKeys
property. Previously, ifargsFromKeys
was absent, it could be read fromargs
. -
Support for fragment hints has been removed in favor of selection set hints.
-
stitchSchemas
now processes allGraphQLSchema
andSubschemaConfig
subschema input into newSubschema
objects, handling schema config directives such aso@computed
as well as generating the final transformed schema, stored as thetransformedSchema
property, if transforms are used. Signatures of theonTypeConflict
,fieldConfigMerger
, andinputFieldConfigMerger
have been updated to include metadata related to the original and transformed subschemas. Note the property name change foronTypeConflict
fromschema
tosubschema
.
- 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
, andinfo
withparent
available asthis
rather than as the first argument.
filterSchema
'sfieldFilter
will now filter all fields across Object, Interface, and Input types. For the previous Object-only behavior, switch to theobjectFieldFilter
option.- Unused
fieldNodes
utility functions have been removed. - Unused
typeContainsSelectionSet
function has been removed, andtypesContainSelectionSet
has been moved to thestitch
package. - Unnecessary
Operation
type has been removed in favor ofOperationTypeNode
from upstream graphql-js. - As above,
applySchemaTransforms
/applyRequestTransforms
/applyResultTransforms
have been removed from theutils
package, as they are implemented elsewhere or no longer necessary.
- proxy all the errors: #1047, #1641
- better error handling for merges #2016, #2062
- fix typings #1614
- disable implicit schema pruning #1817
- mocks not working for functions #1807
-
-
Updated dependencies [be1a1575]
- @graphql-tools/schema@7.0.0
- @graphql-tools/utils@7.0.0
- 32c3c4f8: Fix duplication of scalar directives in merge
- 32c3c4f8: Support scalar extensions by merging directives
- 533d6d53: Bump all packages to allow adjustments
- Updated dependencies [32c3c4f8]
- Updated dependencies [533d6d53]
- @graphql-tools/utils@6.2.4
- @graphql-tools/schema@6.2.4